Fixed a segfault when closing preferences dialog and loading VTE was enabled after it was disabled.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@985 ea778897-0a13-0410-b9d1-a72fbfd435f5
master
Enrico Tröger 2006-11-11 00:24:04 +00:00
parent bae191b373
commit 420011adc6
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
* src/vte.c: Probe different versions of libvte.so, not only libvte.so
and libvte.so.4.
* src/keyfile.c: Fixed a segfault when closing preferences dialog and
loading VTE was enabled after it was disabled.
2006-11-09 Enrico Tröger <enrico.troeger@uvena.de>

View File

@ -117,7 +117,7 @@ void configuration_save()
g_key_file_set_boolean(config, PACKAGE, "auto_complete_constructs", app->pref_editor_auto_complete_constructs);
#ifdef HAVE_VTE
g_key_file_set_boolean(config, "VTE", "load_vte", vte_info.load_vte);
if (vte_info.load_vte)
if (vte_info.load_vte && vc != NULL)
{
gchar *tmp_string;