[atkmm] Text: Plug memory leaks in get_text_vfunc() and get_selection_vfunc()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atkmm] Text: Plug memory leaks in get_text_vfunc() and get_selection_vfunc()
- Date: Mon, 26 Jun 2017 11:44:34 +0000 (UTC)
commit 5b429d3dd8dfaee232331defef71e05a442ebb45
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Mon Jun 26 13:42:30 2017 +0200
Text: Plug memory leaks in get_text_vfunc() and get_selection_vfunc()
These vfuncs shall delete the returned character array after it has been
copied to a Glib::ustring. Bug 783360
atk/src/text.hg | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atk/src/text.hg b/atk/src/text.hg
index 0b74682..357fa32 100644
--- a/atk/src/text.hg
+++ b/atk/src/text.hg
@@ -170,7 +170,7 @@ public:
protected:
#m4 _CONVERSION(`Glib::ustring', `gchar*', `g_strdup(($3).c_str())')
-
+#m4 _CONVERSION(`gchar*', `Glib::ustring', `Glib::convert_return_gchar_ptr_to_ustring($3)')
_WRAP_VFUNC(Glib::ustring get_text(int start_offset, int end_offset) const, get_text)
_WRAP_VFUNC(gunichar get_character_at_offset(int offset) const, get_character_at_offset)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]