[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.71,1.72
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.71,1.72 |
Date: |
Mon, 17 Mar 2003 18:31:40 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/msn2
In directory subversions:/tmp/cvs-serv17469/modules/msn2
Modified Files:
msn.C
Log Message:
try to fix more leaks
Index: msn.C
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/msn2/msn.C,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- msn.C 17 Mar 2003 15:13:21 -0000 1.71
+++ msn.C 17 Mar 2003 23:31:37 -0000 1.72
@@ -1280,7 +1280,7 @@
void ext_got_group(char *id, char *name)
{
char *eb_name = NULL;
-
+ char *t = NULL;
if (!strcmp(name,"~")) {
eb_name = _("Buddies");
if (!value_pair_get_value(msn_grouplist, eb_name)) {
@@ -1289,11 +1289,16 @@
}
}
eb_name = Utf8ToStr(name);
- if (!value_pair_get_value(msn_grouplist, eb_name)
- || !strcmp("-1", value_pair_get_value(msn_grouplist, eb_name))) {
+ t = value_pair_get_value(msn_grouplist, eb_name);
+ if (!t || !strcmp("-1", value_pair_get_value(msn_grouplist, eb_name))) {
msn_grouplist = value_pair_add (msn_grouplist, eb_name,
strdup(id));
eb_debug(DBG_MSN,"got group id %s, %s\n",id,eb_name);
}
+ if (t) {
+ free(t);
+ t = NULL;
+ }
+
if(strcmp(name,"~") && !find_grouplist_by_name(eb_name)
&& !group_mgmt_check_moved(eb_name)) /* if we won't remove it in ten
seconds */
add_group(eb_name);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.71,1.72,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.344,1.345 configure.in,1.339,1.340
- Next by Date:
[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.29,1.30
- Previous by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.344,1.345 configure.in,1.339,1.340
- Next by thread:
[Ayttm-commits] CVS: ayttm/modules/msn2/libmsn2 msn_core.C,1.29,1.30
- Index(es):