Skip to content
Browse files

kill leaks

  • Loading branch information...
1 parent 0310e40 commit bf4cbb2c5acefbade51b698666bd74c3697d13b6 @indeyets committed Oct 14, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 gobject_gobject_class.c
View
2 gobject_gobject_class.c
@@ -53,6 +53,8 @@ void register_gobject_closure(zval *zval_object, GClosure *closure TSRMLS_DC)
void php_gobject_invalidate_gvalue(GValue **gvalue)
{
g_value_unset(*gvalue);
+ g_free(*gvalue);
+ *gvalue = NULL;
}

0 comments on commit bf4cbb2

Please sign in to comment.
Something went wrong with that request. Please try again.