From 76a6adb05fd59bec20251c8d7eee958bc9f285bc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Sun, 8 May 2011 21:40:08 +0000 Subject: [PATCH] fixed crash when glade files cannot be read. --- NEWS | 3 ++- po/Makefile.in | 2 +- src/ui_pref.c | 2 +- src/ui_sensorpref.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 0c97b73..89a4d01 100644 --- a/NEWS +++ b/NEWS @@ -18,7 +18,8 @@ application indicator support is enabled. ** psensor: dialog window for editing all sensors preferences. ** psensor: added support of GTK3.0 (without removing GTK2.0 support) except - code related to Ubuntu Application Indicator + code related to Ubuntu Application Indicator. +** psensor: fixed crash when glade files cannot be read. * v0.6.2.7 diff --git a/po/Makefile.in b/po/Makefile.in index 78af544..120519a 100644 --- a/po/Makefile.in +++ b/po/Makefile.in @@ -21,7 +21,7 @@ srcdir = . top_srcdir = .. -prefix = /usr/local +prefix = /home/jporsini/tmp exec_prefix = ${prefix} datarootdir = ${prefix}/share datadir = ${datarootdir} diff --git a/src/ui_pref.c b/src/ui_pref.c index 1f480b8..0470116 100644 --- a/src/ui_pref.c +++ b/src/ui_pref.c @@ -65,7 +65,7 @@ void ui_pref_dialog_run(struct ui_psensor *ui) if (!ok) { g_warning("%s", error->message); - g_free(error); + g_error_free(error); return ; } diff --git a/src/ui_sensorpref.c b/src/ui_sensorpref.c index 11753e7..94f72fd 100644 --- a/src/ui_sensorpref.c +++ b/src/ui_sensorpref.c @@ -381,7 +381,7 @@ void ui_sensorpref_dialog_run(struct psensor *sensor, struct ui_psensor *ui) if (!ok) { g_warning("%s", error->message); - g_free(error); + g_error_free(error); return ; } -- 2.7.4