projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed some compiler warnings, which arose from recent commits.
[pspp]
/
src
/
ui
/
gui
/
psppire-var-store.c
diff --git
a/src/ui/gui/psppire-var-store.c
b/src/ui/gui/psppire-var-store.c
index bc348efa22db9dfc2bb19a3e438d15c018225cc0..ef9d978dd211342b79c118025428db92bce12249 100644
(file)
--- a/
src/ui/gui/psppire-var-store.c
+++ b/
src/ui/gui/psppire-var-store.c
@@
-381,8
+381,8
@@
psppire_var_store_sheet_model_init (PsppireSheetModelIface *iface)
/**
* psppire_var_store_new:
/**
* psppire_var_store_new:
- * @dict: The dictionary for this var_store.
- *
+ * @dict: The dictionary for this var_store.
The caller retains its reference
+ *
to @dict.
*
* Return value: a new #PsppireVarStore
**/
*
* Return value: a new #PsppireVarStore
**/
@@
-447,7
+447,7
@@
psppire_var_store_dispose (GObject *object)
g_object_unref (self->dictionary);
/* must chain up */
g_object_unref (self->dictionary);
/* must chain up */
- (* parent_class->
finaliz
e) (object);
+ (* parent_class->
dispos
e) (object);
}
}
@@
-686,10
+686,14
@@
text_for_column (PsppireVarStore *vs,
g_assert (vl);
{
g_assert (vl);
{
+ gchar *s;
gchar *const vstr = value_to_text (vl->value, pv);
gchar *const vstr = value_to_text (vl->value, pv);
-
return
g_strdup_printf (_("{%s,`%s'}_"), vstr,
+
s =
g_strdup_printf (_("{%s,`%s'}_"), vstr,
val_lab_get_escaped_label (vl));
val_lab_get_escaped_label (vl));
+ free (vstr);
+
+ return s;
}
}
}
}
}
}