From 26246a2cd104f3548b32a6398d92154b28e08d23 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sat, 1 Sep 2007 04:33:48 +0000 Subject: r16403@tres: ted | 2007-08-29 09:10:45 -0700 Fixed a tricky segmentation fault. Multithreading is hard when you don't have threads :) (bzr r3642) --- src/extension/prefdialog.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/extension/prefdialog.cpp') diff --git a/src/extension/prefdialog.cpp b/src/extension/prefdialog.cpp index 62e6b9ff8..4676661b1 100644 --- a/src/extension/prefdialog.cpp +++ b/src/extension/prefdialog.cpp @@ -171,10 +171,7 @@ PrefDialog::pinned_toggle (void) { _button_cancel->set_label(Gtk::Stock::CLOSE.id); if (_exEnv != NULL) { - _exEnv->shutdown(); - if (_createdExEnv) { - delete _exEnv; - } + _exEnv->shutdown(_createdExEnv); _exEnv = NULL; } } else { -- cgit v1.2.3