fixed crash when glade files cannot be read.
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 8 May 2011 21:40:08 +0000 (21:40 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 8 May 2011 21:40:08 +0000 (21:40 +0000)
NEWS
po/Makefile.in
src/ui_pref.c
src/ui_sensorpref.c

diff --git a/NEWS b/NEWS
index 0c97b73..89a4d01 100644 (file)
--- 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
 
index 78af544..120519a 100644 (file)
@@ -21,7 +21,7 @@ srcdir = .
 top_srcdir = ..
 
 
-prefix = /usr/local
+prefix = /home/jporsini/tmp
 exec_prefix = ${prefix}
 datarootdir = ${prefix}/share
 datadir = ${datarootdir}
index 1f480b8..0470116 100644 (file)
@@ -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 ;
        }
 
index 11753e7..94f72fd 100644 (file)
@@ -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 ;
        }