Merge pull request #23 from ArvidNorr/disconnect

freerdp disconnect added in exit
This commit is contained in:
ArvidNorr 2012-06-17 23:25:28 -07:00
commit 3d9c81ef7b

View File

@ -1379,7 +1379,13 @@ mod_exit(struct mod* mod)
{
return 0;
}
if(mod->inst == NULL)
{
LLOGLN(0, ("mod_exit - null pointer for inst:"));
g_free(mod);
return 0 ;
}
freerdp_disconnect(mod->inst);
if ((mod->vmaj == 1) && (mod->vmin == 0) && (mod->vrev == 1))
{
/* this version has a bug with double free in freerdp_free */