Commit bbe475fd authored by LRN's avatar LRN

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

https://bugzilla.gnome.org/show_bug.cgi?id=733766
parent e1acb934
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment