Converted strings to utf8 before passing to gtksheet. Should work properly now with
[pspp-builds.git] / lib / gtksheet / gtksheet.c
index 648126f06d64a2ac4ccfc22991c2af14ad8ce0ee..2e9e416dc54cf7967085aab65a77bfcac4aed4d9 100644 (file)
@@ -2782,7 +2782,7 @@ gtk_sheet_unrealize (GtkWidget * widget)
   gdk_window_destroy (sheet->row_title_window);
 
   if (sheet->pixmap){
-    g_free (sheet->pixmap);
+    g_object_unref(sheet->pixmap);
     sheet->pixmap = NULL;
   }
 
@@ -4134,7 +4134,7 @@ gtk_sheet_make_backing_pixmap (GtkSheet *sheet, guint width, guint height)
                           &pixmap_width, &pixmap_height);
       if ((pixmap_width != width) || (pixmap_height != height))
        {
-          g_free(sheet->pixmap);
+         g_object_unref(sheet->pixmap);
          sheet->pixmap = gdk_pixmap_new (sheet->sheet_window,
                                               width, height,
                                               -1);