diff options
Diffstat (limited to 'stickynotes')
-rw-r--r-- | stickynotes/stickynotes.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c index 3f1256a4..10428620 100644 --- a/stickynotes/stickynotes.c +++ b/stickynotes/stickynotes.c @@ -779,8 +779,10 @@ stickynotes_save_now (void) /* The XML file is $HOME/.config/mate/stickynotes-applet, most probably */ { - gchar* file = g_build_filename(g_get_user_config_dir(), "mate", "stickynotes-applet.xml", NULL); - g_mkdir_with_parents(g_path_get_dirname(file), S_IRWXU); + gchar* path = g_build_filename(g_get_user_config_dir(), "mate", NULL); + gchar* file = g_build_filename(path, "stickynotes-applet.xml", NULL); + g_mkdir_with_parents(path, S_IRWXU); + g_free(path); xmlSaveFormatFile(file, doc, 1); |