mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-12 04:11:31 +00:00
gst/gstmessage.override: Fix for memleak
Original commit message from CVS: * gst/gstmessage.override: Fix for memleak
This commit is contained in:
parent
f90d557920
commit
d2bb507a16
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-12-07 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/gstmessage.override:
|
||||
Fix for memleak
|
||||
|
||||
=== release 0.10.0 ===
|
||||
|
||||
2005-12-05 <thomas (at) apestaart (dot) org>
|
||||
|
|
|
@ -125,7 +125,7 @@ static PyObject *
|
|||
_wrap_gst_message_parse_error (PyGstMiniObject *self)
|
||||
{
|
||||
PyObject *ret;
|
||||
GError *error;
|
||||
GError *error = NULL;
|
||||
gchar *debug;
|
||||
|
||||
if (GST_MESSAGE_TYPE(self->obj) != GST_MESSAGE_ERROR) {
|
||||
|
@ -137,13 +137,15 @@ _wrap_gst_message_parse_error (PyGstMiniObject *self)
|
|||
|
||||
ret = PyList_New(2);
|
||||
PyList_SetItem(ret, 0, pyg_boxed_new (GST_TYPE_G_ERROR, error, TRUE, TRUE));
|
||||
if (error)
|
||||
g_error_free (error);
|
||||
if (debug != NULL) {
|
||||
PyList_SetItem(ret, 1, PyString_FromString(debug));
|
||||
} else {
|
||||
Py_INCREF (Py_None);
|
||||
PyList_SetItem(ret, 1, Py_None);
|
||||
}
|
||||
|
||||
g_free(debug);
|
||||
return ret;
|
||||
}
|
||||
%%
|
||||
|
|
Loading…
Reference in a new issue