Plug some memory leaks 20120714001927/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 13 Jul 2012 19:51:57 +0000 (21:51 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 13 Jul 2012 19:51:57 +0000 (21:51 +0200)
src/ui/gui/psppire-var-sheet.c

index 76cf51038d04bdc056b5c6388bb80aafd35b69dd..222694dcec84d9f19d6f73f20fedc45446fb2cfb 100644 (file)
@@ -391,6 +391,7 @@ render_var_cell (PsppSheetViewColumn *tree_column,
           free (vstr);
 
           g_object_set (cell, "text", text, NULL);
           free (vstr);
 
           g_object_set (cell, "text", text, NULL);
+          free (text);
           free (labels);
         }
       break;
           free (labels);
         }
       break;
@@ -735,6 +736,7 @@ on_query_var_tooltip (GtkWidget *widget, gint wx, gint wy,
 
           gtk_tooltip_set_text (tooltip, ds_cstr (&s));
           ds_destroy (&s);
 
           gtk_tooltip_set_text (tooltip, ds_cstr (&s));
           ds_destroy (&s);
+          free (labels);
 
           return TRUE;
         }
 
           return TRUE;
         }