[pygobject] Release GIValueInfo when checking an enum argument



commit 1be76d5e006efa24598ff7bf26153660dbe0a890
Author: Mike Gorse <mgorse novell com>
Date:   Fri Jan 7 09:07:35 2011 +0100

    Release GIValueInfo when checking an enum argument
    
    https://bugzilla.gnome.org/show_bug.cgi?id=638847

 gi/pygi-argument.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c
index ec0fd5f..f33074e 100644
--- a/gi/pygi-argument.c
+++ b/gi/pygi-argument.c
@@ -188,6 +188,7 @@ _pygi_g_type_interface_check_object (GIBaseInfo *info,
                     for (i = 0; i < g_enum_info_get_n_values (info); i++) {
                         GIValueInfo *value_info = g_enum_info_get_value (info, i);
                         glong enum_value = g_value_info_get_value (value_info);
+                        g_base_info_unref (value_info);
                         if (value == enum_value) {
                             retval = 1;
                             break;



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