[gedit] Fix memory leak.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix memory leak.
- Date: Mon, 19 Jul 2010 09:31:23 +0000 (UTC)
commit e598d652b0d524fd05800e85bcda9965c8a30691
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Jul 19 11:30:36 2010 +0200
Fix memory leak.
gedit/gedit-plugins-engine.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-plugins-engine.c b/gedit/gedit-plugins-engine.c
index 8024849..d2b34c7 100644
--- a/gedit/gedit-plugins-engine.c
+++ b/gedit/gedit-plugins-engine.c
@@ -169,11 +169,15 @@ require_private_typelib (void)
ns = g_irepository_load_typelib (g_irepository_get_default (),
typelib,
0,
- NULL);
+ &error);
+
+ g_typelib_free (typelib);
+
if (!ns)
{
- g_warning ("Typelib 'Gedit-3.0' could not be loaded");
- g_typelib_free (typelib);
+ g_warning ("Typelib 'Gedit-3.0' could not be loaded: %s",
+ error->message);
+ g_error_free (error);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]