From 436e10fae5cdc42ad932ccdcf194418bf3d96108 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 4 Feb 2016 06:42:43 +0100 Subject: Gtk UI: fixed segfaults because of unsynchronized ViewGtk destruction * this was worked around by using an idle watcher which can be registered thread-safe. * this workaround can be reverted once we're single-threaded again. --- src/interface-gtk/interface-gtk.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/interface-gtk/interface-gtk.h') diff --git a/src/interface-gtk/interface-gtk.h b/src/interface-gtk/interface-gtk.h index 7762ee4..8bd189d 100644 --- a/src/interface-gtk/interface-gtk.h +++ b/src/interface-gtk/interface-gtk.h @@ -43,16 +43,7 @@ public: /* implementation of View::initialize() */ void initialize_impl(void); - inline ~ViewGtk() - { - /* - * This does NOT destroy the Scintilla object - * and GTK widget, if it is the current view - * (and therefore added to the vbox). - */ - if (sci) - g_object_unref(G_OBJECT(sci)); - } + ~ViewGtk(); inline GtkWidget * get_widget(void) -- cgit v1.2.3