summaryrefslogtreecommitdiffstats
path: root/freerdp1/xrdp-freerdp.c
diff options
context:
space:
mode:
authornorrarvid <norrarvid@gmail.com>2012-05-30 08:42:05 +0200
committernorrarvid <norrarvid@gmail.com>2012-05-30 08:42:05 +0200
commit7c512ba042ebb88460612f87c9a99a522db0ea24 (patch)
tree102f20b41fffb4089bf46311fc36999edc3bd756 /freerdp1/xrdp-freerdp.c
parent60b052965634be151d88f7011149d0edc71f23d8 (diff)
downloadxrdp-proprietary-7c512ba042ebb88460612f87c9a99a522db0ea24.tar.gz
xrdp-proprietary-7c512ba042ebb88460612f87c9a99a522db0ea24.zip
freerdp disconnect added in exit
Diffstat (limited to 'freerdp1/xrdp-freerdp.c')
-rw-r--r--freerdp1/xrdp-freerdp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/freerdp1/xrdp-freerdp.c b/freerdp1/xrdp-freerdp.c
index bad9d4ad..2b23194e 100644
--- a/freerdp1/xrdp-freerdp.c
+++ b/freerdp1/xrdp-freerdp.c
@@ -1334,13 +1334,18 @@ mod_exit(struct mod* mod)
{
return 0;
}
-
+ if(mod->inst == NULL)
+ {
+ LLOGLN(0, ("mod_exit - null pointer for inst:"));
+ 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 */
}
else
- {
+ {
freerdp_context_free(mod->inst);
}
freerdp_free(mod->inst);