Mercurial > pidgin
view libpurple/plugins/mono/loader/debug-glue.c @ 30912:63aeff4ebc19
jabber: Avoid a double-free in the google relay code.
Also some whitespace clean-up right next to the double-free. Reported by
"mordy" in #pidgin.
| author | Paul Aurich <paul@darkrain42.org> |
|---|---|
| date | Mon, 08 Nov 2010 17:05:18 +0000 |
| parents | fd5dfd3c04b5 |
| children | a8cc50c2279f |
line wrap: on
line source
#include "mono-glue.h" #include "debug.h" void purple_debug_glue(int type, MonoString *cat, MonoString *str) { char *ccat; char *cstr; ccat = mono_string_to_utf8(cat); cstr = mono_string_to_utf8(str); purple_debug(type, ccat, "%s", cstr); g_free(ccat); g_free(cstr); }
