[pygobject/gsoc2009: 76/160] Force 'nothing' transfer so that the container copy is freed.



commit 7c90a396eb613706b1953cb6bfd3ab3023a884d7
Author: Simon van der Linden <svdlinden src gnome org>
Date:   Wed Jul 29 12:08:20 2009 +0200

    Force 'nothing' transfer so that the container copy is freed.

 gi/pygiinfo.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygiinfo.c b/gi/pygiinfo.c
index 5f179e4..c88d3ec 100644
--- a/gi/pygiinfo.c
+++ b/gi/pygiinfo.c
@@ -978,7 +978,7 @@ _wrap_g_function_info_invoke(PyGIBaseInfo *self, PyObject *py_args)
                 if (transfer != GI_TRANSFER_EVERYTHING) {
                     g_assert(containers_pos < n_containers);
                     pygi_g_argument_release(&containers[containers_pos], arg_type_infos[i],
-                        transfer, GI_DIRECTION_IN);
+                        GI_TRANSFER_NOTHING, GI_DIRECTION_IN);
                     containers_pos += 1;
                 }
                 if (transfer != GI_TRANSFER_NOTHING) {
@@ -988,7 +988,7 @@ _wrap_g_function_info_invoke(PyGIBaseInfo *self, PyObject *py_args)
             } else if (direction == GI_DIRECTION_IN && transfer == GI_TRANSFER_CONTAINER) {
                 g_assert(containers_pos < n_containers);
                 pygi_g_argument_release(&containers[containers_pos], arg_type_infos[i],
-                    transfer, direction);
+                    GI_TRANSFER_NOTHING, direction);
                 containers_pos += 1;
             } else {
                 pygi_g_argument_release(args[i], arg_type_infos[i], transfer, direction);



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