[pygobject] Fix memory leak in gio.File.query_info_async()
- From: Paul Pogonyshev <paulp src gnome org>
- To: svn-commits-list gnome org
- Subject: [pygobject] Fix memory leak in gio.File.query_info_async()
- Date: Thu, 30 Apr 2009 15:52:09 -0400 (EDT)
commit 47389217d1a65a8e3f404d486c508cf5d3164756
Author: Paul Pogonyshev <pogonyshev gmx net>
Date: Thu Apr 30 22:47:19 2009 +0300
Fix memory leak in gio.File.query_info_async()
After the recent patch it would leak exception data if old argument
order was used. Properly decref the objects.
---
gio/gfile.override | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/gio/gfile.override b/gio/gfile.override
index 7f369c5..e7844e3 100644
--- a/gio/gfile.override
+++ b/gio/gfile.override
@@ -1056,6 +1056,10 @@ _wrap_g_file_query_info_async(PyGObject *self, PyObject *args, PyObject *kwargs)
PyErr_Restore(exc_type, exc_value, exc_traceback);
goto error;
}
+
+ Py_XDECREF(exc_type);
+ Py_XDECREF(exc_value);
+ Py_XDECREF(exc_traceback);
}
if (!pygio_notify_callback_is_valid(notify))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]