layout fix + fix potential memory leak

This commit is contained in:
norrarvid 2012-06-18 08:23:36 +02:00
parent 7c512ba042
commit 9cad7e8563

View File

@ -1337,6 +1337,7 @@ mod_exit(struct mod* mod)
if(mod->inst == NULL)
{
LLOGLN(0, ("mod_exit - null pointer for inst:"));
g_free(mod);
return 0 ;
}
freerdp_disconnect(mod->inst);
@ -1345,7 +1346,7 @@ mod_exit(struct mod* mod)
/* this version has a bug with double free in freerdp_free */
}
else
{
{
freerdp_context_free(mod->inst);
}
freerdp_free(mod->inst);