Use g_clear_object() shorthand for unref-and-set-to-null

https://bugzilla.gnome.org/show_bug.cgi?id=733766
This commit is contained in:
Руслан Ижбулатов 2014-08-02 05:16:09 +00:00
parent e1acb93415
commit bbe475fd97

View File

@ -134,11 +134,7 @@ gtk_win32_embed_widget_unrealize (GtkWidget *widget)
embed_widget->old_window_procedure = NULL;
if (embed_widget->parent_window != NULL)
{
g_object_unref (embed_widget->parent_window);
embed_widget->parent_window = NULL;
}
g_clear_object (&embed_widget->parent_window);
GTK_WIDGET_CLASS (gtk_win32_embed_widget_parent_class)->unrealize (widget);
}