From 766315cf853f0d360799f843e1d199729fab95c5 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Wed, 5 Apr 2017 16:29:02 +0200 Subject: [PATCH] Free m_global_rc_path --- radiant/preferences.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/radiant/preferences.h b/radiant/preferences.h index 5785c68f..d57dd785 100644 --- a/radiant/preferences.h +++ b/radiant/preferences.h @@ -527,8 +527,15 @@ void LoadTexdefPref( texdef_t* pTexdef, const char* pName ); PrefsDlg (); virtual ~PrefsDlg (){ - g_string_free( m_rc_path, true ); - g_string_free( m_inipath, true ); + if ( m_global_rc_path ) { + g_string_free( m_global_rc_path, true ); + } + if ( m_rc_path ) { + g_string_free( m_rc_path, true ); + } + if ( m_inipath ) { + g_string_free( m_inipath, true ); + } } /*!