From 3ee8ddcb181b8185b24a1de5ce6e509219883072 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Wed, 8 Nov 2023 08:13:37 +0100
Subject: Remove a memory leak from the creation of Python plugins.

---
 plugins/pychrysalide/plugins/plugin.c | 2 --
 1 file changed, 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;
 
-- 
cgit v0.11.2-87-g4458