don't leak uid.
authorChris Toshok <toshok@ximian.com>
Wed, 25 Feb 2004 07:24:05 +0000 (07:24 +0000)
committerChris Toshok <toshok@src.gnome.org>
Wed, 25 Feb 2004 07:24:05 +0000 (07:24 +0000)
2004-02-24  Chris Toshok  <toshok@ximian.com>

* libedataserver/e-source-group.c
(e_source_group_new_from_xmldoc): don't leak uid.

ChangeLog
libedataserver/e-source-group.c

index 90f7e66..2115efd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-02-24  Chris Toshok  <toshok@ximian.com>
+
+       * libedataserver/e-source-group.c
+       (e_source_group_new_from_xmldoc): don't leak uid.
+
 2004-02-23  JP Rosevear <jpr@ximian.com>
 
        * Makefile.am: make sure to distclean libdb
index f7b2828..94bbb81 100644 (file)
@@ -253,6 +253,9 @@ e_source_group_new_from_xmldoc (xmlDocPtr doc)
        e_source_group_set_readonly (new, readonly_str && !strcmp (readonly_str, "yes"));
 
  done:
+       if (uid != NULL)
+               xmlFree (uid);
+
        if (name != NULL)
                xmlFree (name);
        if (base_uri != NULL)