[gtk+/wip/carlosg/event-as-object: 840/844] gdk/wayland: s/gdk_event_free/g_object_unref/



commit 14421aa6bee2fc073f19d2d20f7318db787b542c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Oct 31 13:36:31 2017 +0100

    gdk/wayland: s/gdk_event_free/g_object_unref/

 gdk/wayland/gdkdnd-wayland.c       |    2 +-
 gdk/wayland/gdkeventsource.c       |    2 +-
 gdk/wayland/gdkselection-wayland.c |    8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gdk/wayland/gdkdnd-wayland.c b/gdk/wayland/gdkdnd-wayland.c
index d3bdbb4..07b91cc 100644
--- a/gdk/wayland/gdkdnd-wayland.c
+++ b/gdk/wayland/gdkdnd-wayland.c
@@ -138,7 +138,7 @@ _gdk_wayland_drag_context_emit_event (GdkDragContext *context,
   gdk_event_set_device (event, gdk_drag_context_get_device (context));
 
   gdk_display_put_event (gdk_window_get_display (window), event);
-  gdk_event_free (event);
+  g_object_unref (event);
 }
 
 static GdkWindow *
diff --git a/gdk/wayland/gdkeventsource.c b/gdk/wayland/gdkeventsource.c
index 7016af9..688c090 100644
--- a/gdk/wayland/gdkeventsource.c
+++ b/gdk/wayland/gdkeventsource.c
@@ -123,7 +123,7 @@ gdk_event_source_dispatch (GSource     *base,
     {
       _gdk_event_emit (event);
 
-      gdk_event_free (event);
+      g_object_unref (event);
     }
 
   gdk_threads_leave ();
diff --git a/gdk/wayland/gdkselection-wayland.c b/gdk/wayland/gdkselection-wayland.c
index fee549f..a00d503 100644
--- a/gdk/wayland/gdkselection-wayland.c
+++ b/gdk/wayland/gdkselection-wayland.c
@@ -133,7 +133,7 @@ selection_buffer_notify (SelectionBuffer *buffer)
       event->selection.requestor = g_object_ref (l->data);
 
       _gdk_display_put_event (gdk_window_get_display (l->data), event);
-      gdk_event_free (event);
+      g_object_unref (event);
     }
 }
 
@@ -572,7 +572,7 @@ gdk_wayland_selection_emit_request (GdkWindow *window,
   event->selection.requestor = g_object_ref (window);
 
   _gdk_display_put_event (gdk_window_get_display (window), event);
-  gdk_event_free (event);
+  g_object_unref (event);
 }
 
 static AsyncWriteData *
@@ -1105,7 +1105,7 @@ emit_empty_selection_notify (GdkWindow *requestor,
   event->selection.requestor = g_object_ref (requestor);
 
   _gdk_display_put_event (gdk_window_get_display (requestor), event);
-  gdk_event_free (event);
+  g_object_unref (event);
 }
 
 static void
@@ -1127,7 +1127,7 @@ emit_selection_clear (GdkDisplay *display,
     }
 
   _gdk_display_put_event (display, event);
-  gdk_event_free (event);
+  g_object_unref (event);
 }
 
 void


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