projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gui: Fix g_object_get() memory leaks for PsppireWindow's filename.
[pspp-builds.git]
/
src
/
ui
/
gui
/
psppire-data-window.c
diff --git
a/src/ui/gui/psppire-data-window.c
b/src/ui/gui/psppire-data-window.c
index 51b853c1bc2f55c4585df893da305b587299093b..a463ee43d1a6c9effa5b9c6d879cc20f61e5ee34 100644
(file)
--- a/
src/ui/gui/psppire-data-window.c
+++ b/
src/ui/gui/psppire-data-window.c
@@
-379,14
+379,14
@@
name_has_suffix (const gchar *name)
static void
save_file (PsppireWindow *w)
{
static void
save_file (PsppireWindow *w)
{
+ const gchar *file_name = NULL;
gchar *utf8_file_name = NULL;
gchar *utf8_file_name = NULL;
- gchar *file_name = NULL;
GString *fnx;
struct string filename ;
PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (w);
gchar *syntax;
GString *fnx;
struct string filename ;
PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (w);
gchar *syntax;
-
g_object_get (w, "filename", &file_name, NULL
);
+
file_name = psppire_window_get_filename (w
);
fnx = g_string_new (file_name);
fnx = g_string_new (file_name);