kern: SvcCreateSession, KDebug finalization

This commit is contained in:
Michael Scire 2020-07-19 20:06:21 -07:00 committed by SciresM
parent 36eb78a3ce
commit 94f9cc1626
5 changed files with 151 additions and 8 deletions

View file

@ -71,6 +71,9 @@ namespace ams::kern::svc {
/* Initialize the event. */
event->Initialize();
/* Commit the event reservation. */
event_reservation.Commit();
/* Ensure that we clean up the event (and its only references are handle table) on function end. */
ON_SCOPE_EXIT {
event->GetWritableEvent().Close();