From: John Darrington Date: Sat, 2 Feb 2008 06:40:29 +0000 (+0000) Subject: Fixed some warnings from valgrind. X-Git-Tag: v0.6.0~143 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=daa89632abf5920a2d2aaa622bac44ab012e1da8;p=pspp-builds.git Fixed some warnings from valgrind. --- diff --git a/lib/gtksheet/gtksheet.c b/lib/gtksheet/gtksheet.c index 18922cf1..409c2369 100644 --- a/lib/gtksheet/gtksheet.c +++ b/lib/gtksheet/gtksheet.c @@ -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); } } diff --git a/src/ui/gui/psppire-case-file.c b/src/ui/gui/psppire-case-file.c index 8b194528..e08c0ac1 100644 --- a/src/ui/gui/psppire-case-file.c +++ b/src/ui/gui/psppire-case-file.c @@ -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; diff --git a/src/ui/gui/psppire.c b/src/ui/gui/psppire.c index 07557fed..08d77f0c 100644 --- a/src/ui/gui/psppire.c +++ b/src/ui/gui/psppire.c @@ -189,7 +189,6 @@ create_icon_factory (void) } } - { /* Create our own "pspp-stock-reset" item, using the GTK_STOCK_REFRESH icon set */ diff --git a/src/ui/gui/var-type-dialog.c b/src/ui/gui/var-type-dialog.c index 8aad3ada..50ab417c 100644 --- a/src/ui/gui/var-type-dialog.c +++ b/src/ui/gui/var-type-dialog.c @@ -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",