summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvidNorr <norrarvid@gmail.com>2012-06-17 23:25:28 -0700
committerArvidNorr <norrarvid@gmail.com>2012-06-17 23:25:28 -0700
commit3d9c81ef7b0f68c3ed63ca0109432f0889aba32b (patch)
tree4bef23cf4f7d43fcd13514125a4c0136bb80db99
parent1011b4a25656fed871ddb6e8d782f65fa0e97d9f (diff)
parent9cad7e8563f8f896df8524fd1c09692cb9578d80 (diff)
downloadxrdp-proprietary-3d9c81ef7b0f68c3ed63ca0109432f0889aba32b.tar.gz
xrdp-proprietary-3d9c81ef7b0f68c3ed63ca0109432f0889aba32b.zip
Merge pull request #23 from ArvidNorr/disconnect
freerdp disconnect added in exit
-rw-r--r--freerdp1/xrdp-freerdp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/freerdp1/xrdp-freerdp.c b/freerdp1/xrdp-freerdp.c
index 45d1a18d..39d95229 100644
--- a/freerdp1/xrdp-freerdp.c
+++ b/freerdp1/xrdp-freerdp.c
@@ -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 */