ekiga r6395 - in trunk/lib/engine/addressbook: call-history ldap
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6395 - in trunk/lib/engine/addressbook: call-history ldap
- Date: Mon, 23 Jun 2008 20:30:12 +0000 (UTC)
Author: jpuydt
Date: Mon Jun 23 20:30:12 2008
New Revision: 6395
URL: http://svn.gnome.org/viewvc/ekiga?rev=6395&view=rev
Log:
Fixed two small leaks
Modified:
trunk/lib/engine/addressbook/call-history/history-book.cpp
trunk/lib/engine/addressbook/ldap/ldap-source.cpp
Modified: trunk/lib/engine/addressbook/call-history/history-book.cpp
==============================================================================
--- trunk/lib/engine/addressbook/call-history/history-book.cpp (original)
+++ trunk/lib/engine/addressbook/call-history/history-book.cpp Mon Jun 23 20:30:12 2008
@@ -50,7 +50,7 @@
{
xmlNodePtr root = NULL;
- const gchar *c_raw = gm_conf_get_string (KEY);
+ gchar *c_raw = gm_conf_get_string (KEY);
if (c_raw != NULL) {
@@ -75,6 +75,8 @@
&& child->name != NULL
&& xmlStrEqual (BAD_CAST ("entry"), child->name))
add (child);
+
+ g_free (c_raw);
} else {
doc = xmlNewDoc (BAD_CAST "1.0");
Modified: trunk/lib/engine/addressbook/ldap/ldap-source.cpp
==============================================================================
--- trunk/lib/engine/addressbook/ldap/ldap-source.cpp (original)
+++ trunk/lib/engine/addressbook/ldap/ldap-source.cpp Mon Jun 23 20:30:12 2008
@@ -50,7 +50,7 @@
OPENLDAP::Source::Source (Ekiga::ServiceCore &_core): core(_core), doc(NULL)
{
xmlNodePtr root;
- const gchar *c_raw = gm_conf_get_string (KEY);
+ gchar *c_raw = gm_conf_get_string (KEY);
if (c_raw != NULL) {
@@ -75,6 +75,8 @@
&& child->name != NULL
&& xmlStrEqual (BAD_CAST "server", child->name))
add (child);
+
+ g_free (c_raw);
} else {
doc = xmlNewDoc (BAD_CAST "1.0");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]