Fix memory leak and RFX encoder notify
This commit is contained in:
committed by
Christopher Pitstick
parent
584a894490
commit
1b6ca2245d
+3
-3
@@ -470,12 +470,12 @@ process_enc_rfx(struct xrdp_encoder *self, XRDP_ENC_DATA *enc)
|
||||
tc_mutex_lock(mutex);
|
||||
fifo_add_item(fifo_processed, enc_done);
|
||||
tc_mutex_unlock(mutex);
|
||||
/* signal completion for main thread */
|
||||
g_set_wait_obj(event_processed);
|
||||
|
||||
}
|
||||
while (!finished);
|
||||
|
||||
/* signal completion for main thread */
|
||||
g_set_wait_obj(event_processed);
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -306,6 +306,8 @@ xrdp_process_main_loop(struct xrdp_process *self)
|
||||
}
|
||||
/* Run end in module */
|
||||
xrdp_process_mod_end(self);
|
||||
xrdp_wm_delete(self->wm);
|
||||
self->wm = NULL;
|
||||
libxrdp_exit(self->session);
|
||||
self->session = 0;
|
||||
self->status = -1;
|
||||
|
||||
Reference in New Issue
Block a user