forked from osmocom/wireshark
g_object_unref(cursor) craches pre GTK 3.0 protect it with
#if GTK_CHECK_VERSION(3,0,0) svn path=/trunk/; revision=42207
This commit is contained in:
parent
0819722ad8
commit
6c88c479c6
1 changed files with 5 additions and 1 deletions
|
@ -593,7 +593,11 @@ static void set_busy_cursor(GdkWindow *w)
|
|||
cursor = gdk_cursor_new(GDK_WATCH);
|
||||
gdk_window_set_cursor(w, cursor);
|
||||
gdk_flush();
|
||||
g_object_unref(cursor);
|
||||
#if GTK_CHECK_VERSION(3,0,0)
|
||||
g_object_unref(cursor)
|
||||
#else
|
||||
gdk_cursor_unref(cursor);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void unset_busy_cursor(GdkWindow *w)
|
||||
|
|
Loading…
Reference in a new issue