diff options
author | rbuj <[email protected]> | 2021-10-23 03:54:46 +0200 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2022-01-01 11:30:07 +0100 |
commit | da404d7db23cdb62ae1bb6096031a06d712993d1 (patch) | |
tree | be2f8002733cc0c0ea6db8aff6ab3dff06e0c65e | |
parent | c7d460d479891b305c96b3de18817c541929d0a8 (diff) | |
download | pluma-da404d7db23cdb62ae1bb6096031a06d712993d1.tar.bz2 pluma-da404d7db23cdb62ae1bb6096031a06d712993d1.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", |