[gtk+] gtkappchooserwidget: Use g_object_clear()
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkappchooserwidget: Use g_object_clear()
- Date: Thu, 22 Dec 2011 03:34:04 +0000 (UTC)
commit 115d92aa11d4beb5ea01ce7659bd2f9aca570bb1
Author: Javier JardÃn <jjardon gnome org>
Date: Tue Dec 20 23:49:39 2011 +0000
gtkappchooserwidget: Use g_object_clear()
gtk/gtkappchooserwidget.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c
index 3ba1b59..459fe5d 100644
--- a/gtk/gtkappchooserwidget.c
+++ b/gtk/gtkappchooserwidget.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]