diff options
Diffstat (limited to 'plugins/pychrysalide/arch')
-rw-r--r-- | plugins/pychrysalide/arch/processor.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/pychrysalide/arch/processor.c b/plugins/pychrysalide/arch/processor.c index 4feaa8b..8fc2598 100644 --- a/plugins/pychrysalide/arch/processor.c +++ b/plugins/pychrysalide/arch/processor.c @@ -164,14 +164,15 @@ static PyObject *py_arch_processor_new(PyTypeObject *type, PyObject *args, PyObj (GClassInitFunc)py_arch_processor_init_gclass, NULL); if (first_time) + { status = register_class_for_dynamic_pygobject(gtype, type, base); - else - status = true; - if (!status) - { - result = NULL; - goto exit; + if (!status) + { + result = NULL; + goto exit; + } + } /* On crée, et on laisse ensuite la main à PyGObject_Type.tp_init() */ |