Plugged memory leaks in GUI, and converted most of the strings to UTF8, so that
[pspp-builds.git] / lib / gtksheet / gsheet-uniform-row.c
index 6ab1c8ff11f196824d4a3feb4392024b43d2463b..f25480fbed733ed396ff3947df89e05171999b11 100644 (file)
@@ -123,9 +123,7 @@ g_sheet_uniform_row_get_visibility(const GSheetRow *geom, gint u)
 static const gchar *
 g_sheet_uniform_row_get_button_label(const GSheetRow *geom, gint u)
 {
-  static gchar *label; 
-  g_free(label);
-  label = g_strdup_printf("%d", u);
+  gchar *label = g_strdup_printf("%d", u);
 
   return label;
 }