gtkappchooserwidget: Use g_object_clear()

This commit is contained in:
Javier Jardón 2011-12-20 23:49:39 +00:00
parent 182fbba2bf
commit 115d92aa11

View File

@ -993,11 +993,7 @@ gtk_app_chooser_widget_dispose (GObject *object)
{
GtkAppChooserWidget *self = GTK_APP_CHOOSER_WIDGET (object);
if (self->priv->selected_app_info != NULL)
{
g_object_unref (self->priv->selected_app_info);
self->priv->selected_app_info = NULL;
}
g_clear_object (&self->priv->selected_app_info);
G_OBJECT_CLASS (gtk_app_chooser_widget_parent_class)->dispose (object);
}