Fixed some memory leaks in GUI.
[pspp-builds.git] / src / ui / gui / helper.c
index e3c4ee081a911cb4d70d81d14517cf0005b25ee3..d2defd69933a85a4063d1673b8e61c8d0f7b3462 100644 (file)
@@ -77,12 +77,12 @@ get_widget_assert(GladeXML *xml, const gchar *name)
 }
 
 /* Converts a string in the pspp locale to utf-8 */
-const char *
+char *
 pspp_locale_to_utf8(const gchar *text, gssize len, GError **err)
 {
   GError *tmp_error = 0;
 
-  const gchar *s;
+  gchar *s;
 
   if ( ! text ) 
     return 0;