[gtk+] gdkwindow-wayland: Pair a ref with its owner



commit ec7504fd57a77071c85d622de0ac47bd08b319d3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jun 19 14:33:35 2014 -0400

    gdkwindow-wayland: Pair a ref with its owner

 gdk/wayland/gdkwindow-wayland.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index a9a2dc6..4d15167 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -602,7 +602,7 @@ gdk_wayland_window_configure (GdkWindow *window,
   display = gdk_window_get_display (window);
 
   event = gdk_event_new (GDK_CONFIGURE);
-  event->configure.window = window;
+  event->configure.window = g_object_ref (window);
   event->configure.send_event = FALSE;
   event->configure.width = width;
   event->configure.height = height;
@@ -610,8 +610,6 @@ gdk_wayland_window_configure (GdkWindow *window,
   gdk_wayland_window_update_size (window, width, height);
   _gdk_window_update_size (window);
 
-  g_object_ref(window);
-
   _gdk_wayland_display_deliver_event (display, event);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]