diff options
author | Chris Toshok <toshok@ximian.com> | 2002-06-16 06:20:43 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-06-16 06:20:43 +0800 |
commit | f71abec6805236cc97891f0fba506c009d52cbf9 (patch) | |
tree | 8a36cf323d6ad36c4588d16ed1a9a0a81dcf8d35 /libversit | |
parent | 69e8bc45f51e1fa4368d2e906b291a5377e0cbfa (diff) | |
download | gsoc2013-evolution-f71abec6805236cc97891f0fba506c009d52cbf9.tar.gz gsoc2013-evolution-f71abec6805236cc97891f0fba506c009d52cbf9.tar.zst gsoc2013-evolution-f71abec6805236cc97891f0fba506c009d52cbf9.zip |
fix a braindead typo that caused us to leak strings in certain
2002-06-14 Chris Toshok <toshok@ximian.com>
* libversit/vobject.c (unUseStr): fix a braindead typo that caused
us to leak strings in certain circumstances (when the string being
freed was second in the list, the head of the list would get
lost.)
svn path=/trunk/; revision=17194
Diffstat (limited to 'libversit')
-rw-r--r-- | libversit/vobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libversit/vobject.c b/libversit/vobject.c index dd0d1131ed..fb78253700 100644 --- a/libversit/vobject.c +++ b/libversit/vobject.c @@ -662,7 +662,7 @@ DLLEXPORT(void) unUseStr(const char *s) if (stricmp(t->s,s) == 0) { t->refCnt--; if (t->refCnt == 0) { - if (p == strTbl[h]) { + if (t == strTbl[h]) { strTbl[h] = t->next; } else { |