diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-05-31 20:57:07 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-05-31 20:57:07 +0000 |
commit | 6974bcecb1d13a9286373f312d362490407444ea (patch) | |
tree | 0ec37d68f1823d31db3f8508443657192b64c3e8 /ui | |
parent | 81820b20ce367cbff3f4bb79dd13df9b347206f1 (diff) |
Don't call gtk_widget_unregister_window() in bytes_view_unrealize() after GTK+ 3.8.0
to prevent double invocation causing crash.
This fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8604 .
The patch is from Jakub Zawadzki.
svn path=/trunk/; revision=49655
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/bytes_view.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/gtk/bytes_view.c b/ui/gtk/bytes_view.c index 54f65d159f..55b9c0ca85 100644 --- a/ui/gtk/bytes_view.c +++ b/ui/gtk/bytes_view.c @@ -257,9 +257,7 @@ bytes_view_unrealize(GtkWidget *widget) bv->context = NULL; } /* if there are still events in the queue, this'll avoid segfault */ -#if GTK_CHECK_VERSION(3, 8, 0) - gtk_widget_unregister_window(widget, gtk_widget_get_window(widget)); -#else +#if !GTK_CHECK_VERSION(3, 8, 0) gdk_window_set_user_data(gtk_widget_get_window(widget), NULL); #endif |