gst/gstbus.override: properly unref the message python wrapper...

Original commit message from CVS:
* gst/gstbus.override: (bus_sync_handler),(bus_handler):
properly unref the message python wrapper...
This commit is contained in:
Edward Hervey 2005-07-13 16:10:24 +00:00
parent e6ee173eae
commit 816af777c3
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-07-13 Edward Hervey <edward@fluendo.com>
* gst/gstbus.override: (bus_sync_handler),(bus_handler):
properly unref the message python wrapper...
2005-07-13 Andy Wingo <wingo@pobox.com> 2005-07-13 Andy Wingo <wingo@pobox.com>
* examples/pipeline-tester (Window.on_message): Handle errors. * examples/pipeline-tester (Window.on_message): Handle errors.

View file

@ -63,7 +63,7 @@ bus_sync_handler (GstBus *bus, GstMessage *message, gpointer user_data)
res = GST_BUS_PASS; res = GST_BUS_PASS;
Py_DECREF (ret); Py_DECREF (ret);
} }
Py_DECREF(py_msg);
Py_DECREF(args); Py_DECREF(args);
pyg_gil_state_release(state); pyg_gil_state_release(state);
@ -113,6 +113,7 @@ bus_handler (GstBus *bus, GstMessage *message, gpointer user_data)
res = PyObject_IsTrue(ret); res = PyObject_IsTrue(ret);
Py_DECREF(ret); Py_DECREF(ret);
} }
Py_DECREF(py_msg);
Py_DECREF(args); Py_DECREF(args);
pyg_gil_state_release(state); pyg_gil_state_release(state);