[glibmm: 1/3] Fix memory leak in Glib::ustring::make_valid()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm: 1/3] Fix memory leak in Glib::ustring::make_valid()
- Date: Thu, 18 Apr 2019 12:25:18 +0000 (UTC)
commit 490de74a4c8def5f92630019959053472fcd1082
Author: Martin Ejdestig <marejde gmail com>
Date: Wed Apr 17 17:28:08 2019 +0200
Fix memory leak in Glib::ustring::make_valid()
glib/glibmm/ustring.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/glibmm/ustring.cc b/glib/glibmm/ustring.cc
index 901deac4..e56b3d9b 100644
--- a/glib/glibmm/ustring.cc
+++ b/glib/glibmm/ustring.cc
@@ -1221,7 +1221,7 @@ ustring::validate(ustring::const_iterator& first_invalid) const
ustring
ustring::make_valid() const
{
- return ustring(g_utf8_make_valid(string_.data(), string_.size()));
+ return convert_return_gchar_ptr_to_ustring(g_utf8_make_valid(string_.data(), string_.size()));
}
bool
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]