Commit b0e9b79c authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

python: Don't call Py_DECREF() on NULL

CID 1320703
parent 4097d3df
......@@ -290,7 +290,8 @@ plugin_init (GstPlugin * plugin)
pyplugin = pygobject_new (G_OBJECT (plugin));
if (!pyplugin || PyModule_AddObject (gst, "__plugin__", pyplugin) != 0) {
g_critical ("Couldn't set __plugin__ attribute");
Py_DECREF (pyplugin);
if (pyplugin)
Py_DECREF (pyplugin);
return FALSE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment