diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-04-23 13:39:12 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-04-23 13:39:12 +0000 |
commit | 6c88c479c6538a7148936062e8b6d7c0d6373222 (patch) | |
tree | 8e6b5eed6795f5170793498bf60086575c388126 /ui | |
parent | 0819722ad8fea31124836b40122dafb2e8f4556b (diff) | |
download | wireshark-6c88c479c6538a7148936062e8b6d7c0d6373222.tar.gz wireshark-6c88c479c6538a7148936062e8b6d7c0d6373222.tar.bz2 wireshark-6c88c479c6538a7148936062e8b6d7c0d6373222.zip |
g_object_unref(cursor) craches pre GTK 3.0 protect it with
#if GTK_CHECK_VERSION(3,0,0)
svn path=/trunk/; revision=42207
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/tcp_graph.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/gtk/tcp_graph.c b/ui/gtk/tcp_graph.c index d7bd311ea9..74f61eedba 100644 --- a/ui/gtk/tcp_graph.c +++ b/ui/gtk/tcp_graph.c @@ -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) |