summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/glibext
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide/glibext')
-rw-r--r--plugins/pychrysalide/glibext/linegen.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/pychrysalide/glibext/linegen.c b/plugins/pychrysalide/glibext/linegen.c
index 9001b71..3214cc9 100644
--- a/plugins/pychrysalide/glibext/linegen.c
+++ b/plugins/pychrysalide/glibext/linegen.c
@@ -181,6 +181,8 @@ static size_t py_line_generator_count_lines_wrapper(const GLineGenerator *genera
}
+ Py_DECREF(pyobj);
+
PyGILState_Release(gstate);
return result;
@@ -255,6 +257,8 @@ static void py_line_generator_compute_cursor_wrapper(const GLineGenerator *gener
}
+ Py_DECREF(pyobj);
+
PyGILState_Release(gstate);
}
@@ -331,6 +335,8 @@ static int py_line_generator_contain_cursor_wrapper(const GLineGenerator *genera
}
+ Py_DECREF(pyobj);
+
PyGILState_Release(gstate);
return result;
@@ -405,6 +411,8 @@ static BufferLineFlags py_line_generator_get_flags_wrapper(const GLineGenerator
}
+ Py_DECREF(pyobj);
+
PyGILState_Release(gstate);
return result;
@@ -471,6 +479,8 @@ static void py_line_generator_print_wrapper(GLineGenerator *generator, GBufferLi
}
+ Py_DECREF(pyobj);
+
PyGILState_Release(gstate);
}