summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-11-08 07:13:37 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-11-08 07:13:37 (GMT)
commit3ee8ddcb181b8185b24a1de5ce6e509219883072 (patch)
tree17f2aa7423ce1b4d8352687401f0ea7d73ef2d42 /plugins
parentd34f19bb0dd6aa8e7bdad4374fd95f9fc02a9146 (diff)
Remove a memory leak from the creation of Python plugins.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysalide/plugins/plugin.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/pychrysalide/plugins/plugin.c b/plugins/pychrysalide/plugins/plugin.c
index 340c617..b013345 100644
--- a/plugins/pychrysalide/plugins/plugin.c
+++ b/plugins/pychrysalide/plugins/plugin.c
@@ -1796,8 +1796,6 @@ GPluginModule *create_python_plugin(const char *modname, const char *filename)
if (class == NULL) goto no_class;
if (!PyType_Check(class->ob_type)) goto no_class;
- Py_INCREF(class);
-
instance = PyObject_CallFunction(class, NULL);
if (instance == NULL) goto no_instance;