Skip to content

Commit

Permalink
OrcLib: CommandExecute: release completion callbacks once done
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed May 5, 2023
1 parent a0be15a commit 4ed2bbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/OrcLib/CommandExecute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,8 @@ HRESULT CommandExecute::CompleteExecution(ArchiveMessage::ITarget* pCab)
action->CancelTerminationHandler();
});

m_OnCompleteActions.clear();

CloseHandle(m_pi.hProcess);
m_pi.hProcess = INVALID_HANDLE_VALUE;
CloseHandle(m_pi.hThread);
Expand Down

0 comments on commit 4ed2bbd

Please sign in to comment.