projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d9000c
)
givfuncinfo: Fix memory leak
author
Jasper St. Pierre
<jstpierre@mecheye.net>
Fri, 25 May 2012 20:32:44 +0000
(16:32 -0400)
committer
Jasper St. Pierre
<jstpierre@mecheye.net>
Fri, 25 May 2012 20:36:46 +0000
(16:36 -0400)
The field info wasn't being freed after it was used
girepository/givfuncinfo.c
patch
|
blob
|
history
diff --git
a/girepository/givfuncinfo.c
b/girepository/givfuncinfo.c
index 462521b62c6d862860f194f1bf2a4797ebae5d77..f9ba64a7fd182f2f53b27545d2b5ace681f39d62 100644
(file)
--- a/
girepository/givfuncinfo.c
+++ b/
girepository/givfuncinfo.c
@@
-253,6
+253,7
@@
g_vfunc_info_get_address (GIVFuncInfo *vfunc_info,
offset = g_field_info_get_offset (field_info);
func = *(gpointer*) G_STRUCT_MEMBER_P (implementor_vtable, offset);
g_type_class_unref (implementor_vtable);
+ g_base_info_unref (field_info);
if (func == NULL)
{