[gtk+] The hash owns a ref to the cursor
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] The hash owns a ref to the cursor
- Date: Sat, 10 Jul 2010 16:58:44 +0000 (UTC)
commit 0df65779bb7787471865b69d55d2ffd3701e2a34
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Jul 10 18:48:12 2010 +0200
The hash owns a ref to the cursor
gdk/gdkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index dff74a1..46841be 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -8477,7 +8477,7 @@ gdk_window_set_device_cursor (GdkWindow *window,
if (!cursor)
g_hash_table_remove (private->device_cursor, device);
else
- g_hash_table_replace (private->device_cursor, device, cursor);
+ g_hash_table_replace (private->device_cursor, device, gdk_cursor_ref (cursor));
if (!GDK_WINDOW_DESTROYED (window))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]