Fixed some warnings from valgrind.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 2 Feb 2008 06:40:29 +0000 (06:40 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 2 Feb 2008 06:40:29 +0000 (06:40 +0000)
lib/gtksheet/gtksheet.c
src/ui/gui/psppire-case-file.c
src/ui/gui/psppire.c
src/ui/gui/var-type-dialog.c

index 18922cf14d40e9bc16a8e070a4b275ea4a77f180..409c2369ea8337c8ac5dcea752764a4269704702 100644 (file)
@@ -6261,6 +6261,7 @@ gtk_sheet_size_allocate_entry (GtkSheet *sheet)
              style->fg[GTK_STATE_ACTIVE] = previous_style->fg[GTK_STATE_ACTIVE];
            }
          gtk_widget_set_style (GTK_WIDGET (sheet_entry), style);
+          g_object_unref (style);
        }
     }
 
index 8b194528089d95f3642913bd3709e8f5ec2524ee..e08c0ac17d31f9073e3b5806ee6fb1731fb89364 100644 (file)
@@ -282,7 +282,7 @@ gboolean
 psppire_case_file_data_in (PsppireCaseFile *cf, casenumber casenum, gint idx,
                           struct substring input, const struct fmt_spec *fmt)
 {
-  union value *value;
+  union value *value = NULL;
   int width;
   bool ok;
 
index 07557fed5136d3c1230b1ae6e1ab3a6b306d7908..08d77f0c917c4be73cfafd2f186fc9ff2782a470 100644 (file)
@@ -189,7 +189,6 @@ create_icon_factory (void)
        }
     }
 
-
   {
     /* Create our own "pspp-stock-reset" item, using the
        GTK_STOCK_REFRESH icon set */
index 8aad3ada888ab522b0eb1fa157e6c9a3b3e36b91..50ab417c14817c00905f00d705d63c1a5dbc0679 100644 (file)
@@ -332,6 +332,7 @@ var_type_dialog_create (GladeXML *xml)
   g_assert (xml);
 
   dialog->window = get_widget_assert (xml,"var_type_dialog");
+  dialog->active_button = -1;
 
 
   g_signal_connect (dialog->window, "delete-event",