Community
Participate
Working Groups
This patch replaces gdk_cursor_unref with g_object_unref and removes gdk_cursor_unref: http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=gdk_cursor_unref
Looking at http://git.gnome.org/browse/gtk+/tree/gdk/x11/gdkcursor-x11.c?h=gtk-2-24#n422 and http://git.gnome.org/browse/gtk+/tree/gdk/x11/gdkcursor-x11.c?h=gtk-2-24#n283 (GTK2) and http://git.gnome.org/browse/gtk+/tree/gdk/gdkcursor.c#n289 and http://git.gnome.org/browse/gtk+/tree/gdk/x11/gdkcursor-x11.c#n240 (GTK3) shows that - GTK2 version is not using GObject at all. As a result g_object_unref will receive non GObject pointer. Please keep gdk_cursor_unref for pre GTK3 and g_object_unref for GTK3 and newer.
(In reply to comment #1) > Looking at > http://git.gnome.org/browse/gtk+/tree/gdk/x11/gdkcursor-x11.c?h=gtk-2- > 24#n422 and > http://git.gnome.org/browse/gtk+/tree/gdk/x11/gdkcursor-x11.c?h=gtk-2- > 24#n283 (GTK2) and > http://git.gnome.org/browse/gtk+/tree/gdk/gdkcursor.c#n289 and > http://git.gnome.org/browse/gtk+/tree/gdk/x11/gdkcursor-x11.c#n240 (GTK3) > shows that - GTK2 version is not using GObject at all. > As a result g_object_unref will receive non GObject pointer. > Please keep gdk_cursor_unref for pre GTK3 and g_object_unref for GTK3 and > newer. Thanks for your comments, please refer to the patch below: http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=gdk_cursor_unref_64
Looks good now. Pushed to master. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=ffe5186c17b22da6dd8ec55ad2dd5f424adf803a Thanks for the patch.