mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
python: Don't call Py_DECREF() on NULL
CID 1320703
This commit is contained in:
parent
4097d3df3c
commit
b0e9b79ca8
1 changed files with 2 additions and 1 deletions
|
@ -290,6 +290,7 @@ plugin_init (GstPlugin * plugin)
|
||||||
pyplugin = pygobject_new (G_OBJECT (plugin));
|
pyplugin = pygobject_new (G_OBJECT (plugin));
|
||||||
if (!pyplugin || PyModule_AddObject (gst, "__plugin__", pyplugin) != 0) {
|
if (!pyplugin || PyModule_AddObject (gst, "__plugin__", pyplugin) != 0) {
|
||||||
g_critical ("Couldn't set __plugin__ attribute");
|
g_critical ("Couldn't set __plugin__ attribute");
|
||||||
|
if (pyplugin)
|
||||||
Py_DECREF (pyplugin);
|
Py_DECREF (pyplugin);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue