Skip to content
Snippets Groups Projects
Commit b0e9b79c authored by Sebastian Dröge's avatar Sebastian Dröge :tea:
Browse files

python: Don't call Py_DECREF() on NULL

CID 1320703
parent 4097d3df
No related branches found
No related tags found
Loading
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment