xrdp: fix some leaks in xrdp_encoder.c
This commit is contained in:
parent
b17c45d86f
commit
a64cb81a36
@ -169,6 +169,16 @@ xrdp_encoder_delete(struct xrdp_encoder *self)
|
||||
|
||||
/* todo delete specific encoder */
|
||||
|
||||
if (self->process_enc == process_enc_jpg)
|
||||
{
|
||||
}
|
||||
else if (self->process_enc == process_enc_rfx)
|
||||
{
|
||||
#ifdef XRDP_RFXCODEC
|
||||
rfxcodec_encode_destroy(self->codec_handle);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* destroy wait objects used for signalling */
|
||||
g_delete_wait_obj(self->xrdp_encoder_event_to_proc);
|
||||
g_delete_wait_obj(self->xrdp_encoder_event_processed);
|
||||
@ -208,6 +218,7 @@ xrdp_encoder_delete(struct xrdp_encoder *self)
|
||||
}
|
||||
fifo_delete(fifo);
|
||||
}
|
||||
tc_mutex_delete(self->mutex);
|
||||
g_free(self);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user