[gtkmm/gtkmm-3-24] Gtk::TextView::get_tabs(): Plug a memory leak
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-3-24] Gtk::TextView::get_tabs(): Plug a memory leak
- Date: Mon, 12 Sep 2022 08:15:04 +0000 (UTC)
commit ddf85f318a412d060df547b31dfa2fd104f6c29a
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Mon Sep 12 10:13:00 2022 +0200
Gtk::TextView::get_tabs(): Plug a memory leak
gtk_text_view_get_tabs() returns a copy (transfer full).
gtk/src/textview.hg | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/src/textview.hg b/gtk/src/textview.hg
index 1af7a375..b270d86c 100644
--- a/gtk/src/textview.hg
+++ b/gtk/src/textview.hg
@@ -187,6 +187,8 @@ public:
_WRAP_METHOD(int get_bottom_margin() const, gtk_text_view_get_bottom_margin, newin "3,20")
_WRAP_METHOD(void set_indent(int indent), gtk_text_view_set_indent)
_WRAP_METHOD(int get_indent() const, gtk_text_view_get_indent)
+
+#m4 _CONVERSION(`PangoTabArray*',`Pango::TabArray',`Pango::TabArray(($3), false)')
_WRAP_METHOD(void set_tabs(Pango::TabArray& tabs), gtk_text_view_set_tabs)
_WRAP_METHOD(Pango::TabArray get_tabs() const, gtk_text_view_get_tabs)
_WRAP_METHOD(TextAttributes get_default_attributes() const, gtk_text_view_get_default_attributes)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]