diff options
author | rbuj <[email protected]> | 2021-10-23 03:54:46 +0200 |
---|---|---|
committer | rbuj <[email protected]> | 2022-01-01 11:31:44 +0100 |
commit | f46395ba21cc7fd14e1679ee6c4bc1c5cda81355 (patch) | |
tree | 9e47f49badc74671a5fcea94a444e9f82b28c686 | |
parent | 8d355394e943ef24751cce744837637e2abcec6f (diff) | |
download | pluma-f46395ba21cc7fd14e1679ee6c4bc1c5cda81355.tar.bz2 pluma-f46395ba21cc7fd14e1679ee6c4bc1c5cda81355.tar.xz |
pluma-plugins-engine: fix memory leak
-rw-r--r-- | pluma/pluma-plugins-engine.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pluma/pluma-plugins-engine.c b/pluma/pluma-plugins-engine.c index cf763135..cb5e2c43 100644 --- a/pluma/pluma-plugins-engine.c +++ b/pluma/pluma-plugins-engine.c @@ -57,6 +57,7 @@ static void pluma_plugins_engine_init (PlumaPluginsEngine *engine) { GError *error = NULL; + char *user_plugins_dir; pluma_debug (DEBUG_PLUGINS); @@ -89,9 +90,11 @@ pluma_plugins_engine_init (PlumaPluginsEngine *engine) g_clear_error (&error); } + user_plugins_dir = pluma_dirs_get_user_plugins_dir (); peas_engine_add_search_path (PEAS_ENGINE (engine), - pluma_dirs_get_user_plugins_dir (), - pluma_dirs_get_user_plugins_dir ()); + user_plugins_dir, + user_plugins_dir); + g_free (user_plugins_dir); peas_engine_add_search_path (PEAS_ENGINE (engine), PLUMA_LIBDIR "/plugins", |