diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-10-17 12:48:55 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-10-17 12:48:55 -0400 |
commit | 25483304cdc967c374a435200416affb573583f8 (patch) | |
tree | 03f805d1f127f665a1726f7ab37b7f7c2aabbcac /gdk | |
parent | c8604923598aad745a65ec16eb79113c97649345 (diff) | |
download | gtk+-25483304cdc967c374a435200416affb573583f8.tar.gz |
Minor cleanup
Replace a unref-and-unset combination with g_clear_object.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index d08cee0f89..2ae8105d7d 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -4933,8 +4933,7 @@ finish_drag (MoveResizeData *mv_resize) { gdk_window_destroy (mv_resize->moveresize_emulation_window); mv_resize->moveresize_emulation_window = NULL; - g_object_unref (mv_resize->moveresize_window); - mv_resize->moveresize_window = NULL; + g_clear_object (&mv_resize->moveresize_window); g_clear_pointer (&mv_resize->moveresize_pending_event, g_free); } |