[pygobject] Initialize PyGPollFD_Type.fd_obj to NULL



commit 289d641775d1ea52d2a5379126b70b7fcee46683
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date:   Sun Jan 10 21:01:59 2010 +0100

    Initialize PyGPollFD_Type.fd_obj to NULL
    
    https://bugzilla.gnome.org/show_bug.cgi?id=606582

 gio/gcancellable.override |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gcancellable.override b/gio/gcancellable.override
index 7b5a14e..1eefb3b 100644
--- a/gio/gcancellable.override
+++ b/gio/gcancellable.override
@@ -32,6 +32,7 @@ _wrap_g_cancellable_make_pollfd (PyGObject *self)
     ret = g_cancellable_make_pollfd(G_CANCELLABLE(self->obj), &pollfd);
   
     pypollfd = PyObject_NEW(PyGPollFD, &PyGPollFD_Type);
+    pypollfd->fd_obj = NULL;
     pypollfd->pollfd = pollfd;
     return (PyObject *) pypollfd;
 }



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