+2007-09-10 Ben Pfaff <blp@gnu.org>
+
+ * var-sheet.c (psppire_variable_sheet_create): Use xstrdup to save
+ string returned by bind_textdomain_codeset. Otherwise it can get
+ freed by a subsequent call. Patch #6193. Reviewed by John
+ Darrington.
+
2007-09-06 John Darrington <john@darrington.wattle.id.au>
* helper.c helper.h (execute_syntax): changed return type to
#include <gtksheet/gsheet-uniform-row.h>
#include "localcharset.h"
+#include "xalloc.h"
#include "psppire-var-store.h"
#include "helper.h"
#include "psppire-dict.h"
/* Since this happens inside glade_xml_new, we must prevent strings from
* being re-encoded twice */
- codeset = bind_textdomain_codeset (PACKAGE, 0);
+ codeset = xstrdup (bind_textdomain_codeset (PACKAGE, 0));
bind_textdomain_codeset (PACKAGE, locale_charset ());
for (i = 0 ; i < n_COLS ; ++i )
}
bind_textdomain_codeset (PACKAGE, codeset);
+ free (codeset);
gtk_widget_show (sheet);