[gnome-commander/GSettings: 24/27] Fixes pointer problem for list_font option
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/GSettings: 24/27] Fixes pointer problem for list_font option
- Date: Sun, 17 Jul 2016 11:59:23 +0000 (UTC)
commit a24a88eaa5512a5f07ce3e11cf46a66f2d5c7f4e
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sun Jul 17 11:31:38 2016 +0200
Fixes pointer problem for list_font option
src/gnome-cmd-data.cc | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 4aa4f7a..4adada2 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -248,13 +248,10 @@ void on_backup_pattern_changed ()
void on_list_font_changed ()
{
- char *list_font;
-
- list_font = g_settings_get_string (gnome_cmd_data.options.gcmd_settings->general,
GCMD_SETTINGS_LIST_FONT);
- gnome_cmd_data.options.list_font = list_font;
+ g_free(gnome_cmd_data.options.list_font);
+ gnome_cmd_data.options.list_font = g_settings_get_string (gnome_cmd_data.options.gcmd_settings->general,
GCMD_SETTINGS_LIST_FONT);
main_win->update_view();
- g_free(list_font);
}
void on_ext_disp_mode_changed ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]