forked from AuroraMiddleware/gtk
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:
parent
e1acb93415
commit
bbe475fd97
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user