Fix memory leak and RFX encoder notify

This commit is contained in:
Nexarian
2024-01-08 15:01:25 -05:00
committed by Christopher Pitstick
parent 584a894490
commit 1b6ca2245d
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -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
+2
View File
@@ -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;