[gnome-builder] doap: don't leak parsed name from xml reader
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] doap: don't leak parsed name from xml reader
- Date: Thu, 13 Oct 2016 01:36:17 +0000 (UTC)
commit ac30943157bd49e368c7dd3d068e8430a47a0ae3
Author: Christian Hergert <chergert redhat com>
Date: Wed Oct 12 18:36:09 2016 -0700
doap: don't leak parsed name from xml reader
libide/doap/ide-doap.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libide/doap/ide-doap.c b/libide/doap/ide-doap.c
index 1bf0542..abae527 100644
--- a/libide/doap/ide-doap.c
+++ b/libide/doap/ide-doap.c
@@ -498,7 +498,11 @@ ide_doap_parse_maintainer (IdeDoap *self,
{
if (xml_reader_is_a_local (reader, "name"))
{
- ide_doap_person_set_name (person, xml_reader_read_string (reader));
+ gchar *str;
+
+ str = xml_reader_read_string (reader);
+ ide_doap_person_set_name (person, str);
+ g_free (str);
}
else if (xml_reader_is_a_local (reader, "mbox"))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]