[libpeas] Plug memory leaks
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Plug memory leaks
- Date: Fri, 10 Feb 2012 18:51:43 +0000 (UTC)
commit 99dcb1e31fe59b4c7942a91d5615b3725f4e4df2
Author: Garrett Regier <garrettregier gmail com>
Date: Thu Dec 8 20:04:27 2011 -0800
Plug memory leaks
libpeas/peas-introspection.c | 2 +-
loaders/gjs/peas-extension-gjs.c | 5 ++++-
loaders/python/peas-extension-python.c | 5 ++++-
loaders/seed/peas-extension-seed.c | 5 ++++-
4 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/libpeas/peas-introspection.c b/libpeas/peas-introspection.c
index 75401a3..b9eb005 100644
--- a/libpeas/peas-introspection.c
+++ b/libpeas/peas-introspection.c
@@ -437,7 +437,7 @@ peas_gi_get_type_from_name (const gchar *type_name)
/* Seems they did not import it */
- g_free (ns);
+ g_strfreev (ns);
return the_type;
}
diff --git a/loaders/gjs/peas-extension-gjs.c b/loaders/gjs/peas-extension-gjs.c
index 0d0086c..32cd00e 100644
--- a/loaders/gjs/peas-extension-gjs.c
+++ b/loaders/gjs/peas-extension-gjs.c
@@ -405,7 +405,10 @@ peas_extension_gjs_new (GType exten_type,
/* Already Warned */
if (real_type == G_TYPE_INVALID)
- return NULL;
+ {
+ g_free (interfaces);
+ return NULL;
+ }
gexten = PEAS_EXTENSION_GJS (g_object_new (real_type, NULL));
diff --git a/loaders/python/peas-extension-python.c b/loaders/python/peas-extension-python.c
index 87c5688..c0b2f82 100644
--- a/loaders/python/peas-extension-python.c
+++ b/loaders/python/peas-extension-python.c
@@ -147,7 +147,10 @@ peas_extension_python_new (GType exten_type,
/* Already Warned */
if (real_type == G_TYPE_INVALID)
- return NULL;
+ {
+ g_free (interfaces);
+ return NULL;
+ }
pyexten = PEAS_EXTENSION_PYTHON (g_object_new (real_type, NULL));
diff --git a/loaders/seed/peas-extension-seed.c b/loaders/seed/peas-extension-seed.c
index d1a8bfb..8e0b900 100644
--- a/loaders/seed/peas-extension-seed.c
+++ b/loaders/seed/peas-extension-seed.c
@@ -312,7 +312,10 @@ peas_extension_seed_new (GType exten_type,
/* Already Warned */
if (real_type == G_TYPE_INVALID)
- return NULL;
+ {
+ g_free (interfaces);
+ return NULL;
+ }
sexten = PEAS_EXTENSION_SEED (g_object_new (real_type, NULL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]