kern: SvcCreateSession, KDebug finalization

This commit is contained in:
Michael Scire authored and SciresM committed 2020-07-31 14:50:52 -07:00
1 parent 36eb78a3ce
commit 94f9cc1626
5 files changed
+151 -8

No files matched your search

@@ -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();