summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-28 22:31:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-28 22:31:42 (GMT)
commitce174b991223c85afba55a24e7adc9c8156f7d48 (patch)
tree90f3d3cdb4b83865cfaeaa6674165b3c22df7ef0 /plugins/pychrysalide/glibext
parent2700e6892a0c0d78baf7228040aa07a1e21c6f53 (diff)
Fixed several memory leaks.
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);
}