view libpurple/plugins/mono/loader/debug-glue.c @ 31614:8b2fa46cdfd5

oscar: Fix the leak of 'alias' in this function
author Paul Aurich <paul@darkrain42.org>
date Thu, 19 May 2011 04:16:15 +0000
parents a8cc50c2279f
children
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);
}