[libpeas] Fix a memory leak in the GJS plugin loader



commit 2aaca1c161eef8ca901c36a4e7e5daeea3b61a4d
Author: Garrett Regier <garrettregier gmail com>
Date:   Sun Aug 28 00:11:22 2011 -0700

    Fix a memory leak in the GJS plugin loader

 loaders/gjs/peas-plugin-loader-gjs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/loaders/gjs/peas-plugin-loader-gjs.c b/loaders/gjs/peas-plugin-loader-gjs.c
index b19f7ac..50f1d22 100644
--- a/loaders/gjs/peas-plugin-loader-gjs.c
+++ b/loaders/gjs/peas-plugin-loader-gjs.c
@@ -84,7 +84,7 @@ peas_plugin_loader_gjs_load (PeasPluginLoader *loader,
 
   gjs_context_eval_file (context, filename, NULL, &error);
 
-  g_free (search_paths);
+  g_strfreev (search_paths);
   g_free (filename);
 
   if (error != NULL)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]