summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_orders.c
diff options
context:
space:
mode:
Diffstat (limited to 'xrdp/xrdp_orders.c')
-rw-r--r--xrdp/xrdp_orders.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xrdp/xrdp_orders.c b/xrdp/xrdp_orders.c
index 688c211f..7b5e1273 100644
--- a/xrdp/xrdp_orders.c
+++ b/xrdp/xrdp_orders.c
@@ -39,6 +39,10 @@ struct xrdp_orders* xrdp_orders_create(struct xrdp_process* owner,
/*****************************************************************************/
void xrdp_orders_delete(struct xrdp_orders* self)
{
+ if (self == 0)
+ {
+ return;
+ }
free_stream(self->out_s);
g_free(self);
}