Mercurial > pidgin.yaz
changeset 13954:3cd388613624
[gaim-migrate @ 16502]
Extremely minor memleak fix in the tcl loader plugin
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 17 Jul 2006 04:33:32 +0000 |
parents | 8b2306c64efa |
children | 2d6f7ac4b6f2 |
files | plugins/tcl/tcl.c src/plugin.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/tcl/tcl.c Mon Jul 17 04:30:50 2006 +0000 +++ b/plugins/tcl/tcl.c Mon Jul 17 04:33:32 2006 +0000 @@ -380,10 +380,12 @@ gaim_stringref_unref(GaimTclRefConnection); gaim_stringref_unref(GaimTclRefConversation); gaim_stringref_unref(GaimTclRefPointer); + gaim_stringref_unref(GaimTclRefPlugin); gaim_stringref_unref(GaimTclRefPresence); gaim_stringref_unref(GaimTclRefStatus); gaim_stringref_unref(GaimTclRefStatusAttr); gaim_stringref_unref(GaimTclRefStatusType); + gaim_stringref_unref(GaimTclRefXfer); return TRUE; }
--- a/src/plugin.c Mon Jul 17 04:30:50 2006 +0000 +++ b/src/plugin.c Mon Jul 17 04:33:32 2006 +0000 @@ -843,8 +843,8 @@ } } - if (plugin->path != NULL) g_free(plugin->path); - if (plugin->error != NULL) g_free(plugin->error); + g_free(plugin->path); + g_free(plugin->error); GAIM_DBUS_UNREGISTER_POINTER(plugin);