projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4097d3d
)
python: Don't call Py_DECREF() on NULL
author
Sebastian Dröge
<sebastian@centricular.com>
Mon, 14 Dec 2015 12:01:25 +0000
(13:01 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Mon, 14 Dec 2015 12:01:25 +0000
(13:01 +0100)
CID 1320703
plugin/gstpythonplugin.c
patch
|
blob
|
history
diff --git
a/plugin/gstpythonplugin.c
b/plugin/gstpythonplugin.c
index
f5e02eb
..
af1f781
100644
(file)
--- a/
plugin/gstpythonplugin.c
+++ b/
plugin/gstpythonplugin.c
@@
-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;
}
}