Skip to content

Commit

Permalink
Fix memory leak and RFX encoder notify
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexarian committed Jan 8, 2024
1 parent d260c26 commit 55ab99d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xrdp/xrdp_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions xrdp/xrdp_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 55ab99d

Please sign in to comment.