changeset 746:3a76c2d73606

Free eviqs data field in iqs_del() and evs_del() (This field is not used yet anyway)
author Mikael Berthe <mikael@lilotux.net>
date Mon, 13 Mar 2006 18:41:01 +0100
parents 413e95f3051a
children 9875bc774ddf
files mcabber/src/events.c mcabber/src/jab_iq.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/events.c	Mon Mar 13 17:28:24 2006 +0100
+++ b/mcabber/src/events.c	Mon Mar 13 18:41:01 2006 +0100
@@ -65,7 +65,7 @@
   if (p) {
     g_free(i->id);
     if (i->xmldata) xmlnode_free(i->xmldata);
-    // XXX Should we free i->data?
+    if (i->data)    g_free(i->data);
     g_free(i);
     evs_list = g_slist_remove(evs_list, p->data);
     return 0; // Ok, deleted
--- a/mcabber/src/jab_iq.c	Mon Mar 13 17:28:24 2006 +0100
+++ b/mcabber/src/jab_iq.c	Mon Mar 13 18:41:01 2006 +0100
@@ -80,7 +80,7 @@
   if (p) {
     g_free(i->id);
     if (i->xmldata) xmlnode_free(i->xmldata);
-    // XXX Should we free i->data?
+    if (i->data)    g_free(i->data);
     g_free(i);
     iqs_list = g_slist_remove(iqs_list, p->data);
     return 0; // Ok, deleted