diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-02-04 06:42:43 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-02-04 06:47:28 +0100 |
commit | 436e10fae5cdc42ad932ccdcf194418bf3d96108 (patch) | |
tree | f3b6edf5e8a29b4817330b60573078b3212c7b0e /src/interface-gtk/interface-gtk.h | |
parent | d4bfd54a8811c27e67e5a0032d3836ff801c81e8 (diff) | |
download | sciteco-436e10fae5cdc42ad932ccdcf194418bf3d96108.tar.gz |
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.
Diffstat (limited to 'src/interface-gtk/interface-gtk.h')
-rw-r--r-- | src/interface-gtk/interface-gtk.h | 11 |
1 files changed, 1 insertions, 10 deletions
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) |