[gtk+] ref, don't unref, requestor member when copying GdkEvents
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] ref, don't unref, requestor member when copying GdkEvents
- Date: Thu, 17 Nov 2011 11:00:52 +0000 (UTC)
commit 6690e6dc58f36787ea8a064b0297c932b575f2fe
Author: Alexander Larsson <alexl redhat com>
Date: Thu Nov 17 11:59:27 2011 +0100
ref, don't unref, requestor member when copying GdkEvents
This seems like a typo, we should obviously ref the member when
copying. Apparently nobody copied GDK_SELECTION_* events...
gdk/gdkevents.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index eeaac2d..7a5e4c3 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -580,7 +580,7 @@ gdk_event_copy (const GdkEvent *event)
case GDK_SELECTION_REQUEST:
new_event->selection.requestor = event->selection.requestor;
if (new_event->selection.requestor)
- g_object_unref (new_event->selection.requestor);
+ g_object_ref (new_event->selection.requestor);
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]