Fixed some memory leaks in GUI.
[pspp-builds.git] / src / ui / gui / psppire-data-store.c
index 4a517db1872e616e94a6ed13a01a22a57fcbb6f6..53aa827d256c7edd821cafedfc264e17e413a366 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "psppire-variable.h"
 #include "psppire-data-store.h"
+#include "helper.h"
 
 #include <data/dictionary.h>
 #include <data/missing-values.h>
@@ -147,6 +148,7 @@ psppire_data_store_get_font_desc(GSheetModel *model,
 static void
 psppire_data_store_sheet_model_init (GSheetModelIface *iface)
 {
+  iface->free_strings = TRUE;
   iface->get_string = psppire_data_store_get_string;
   iface->set_string = psppire_data_store_set_string;
   iface->clear_datum = psppire_data_store_clear_datum;