summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-17 10:35:24 +0100
committerStefano Karapetsas <[email protected]>2014-02-17 10:35:24 +0100
commit9e75f79b751c60cdf58794b5d7ffd44af29b92f2 (patch)
treec5a375018eea56216962418fbc9b6f475064a16c
parent6996153b65419c61b75f4f3acd96a61141529ac8 (diff)
downloadpluma-9e75f79b751c60cdf58794b5d7ffd44af29b92f2.tar.bz2
pluma-9e75f79b751c60cdf58794b5d7ffd44af29b92f2.tar.xz
Dont free string owned by glib
Regression caused by https://github.com/mate-desktop/pluma/commit/86369deb93ae28e39ef59d462fb6693747cb332f Closes https://github.com/mate-desktop/pluma/issues/60
-rw-r--r--pluma/pluma-dirs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pluma/pluma-dirs.c b/pluma/pluma-dirs.c
index 24aa6209..8c079cf0 100644
--- a/pluma/pluma-dirs.c
+++ b/pluma/pluma-dirs.c
@@ -51,13 +51,9 @@ gchar* pluma_dirs_get_user_cache_dir(void)
gchar* pluma_dirs_get_user_plugins_dir(void)
{
- gchar* data_dir;
gchar* plugin_dir;
- data_dir = g_get_user_data_dir();
-
- plugin_dir = g_build_filename(data_dir, "pluma", "plugins", NULL);
- g_free(data_dir);
+ plugin_dir = g_build_filename(g_get_user_data_dir(), "pluma", "plugins", NULL);
return plugin_dir;
}