Skip to content

Commit

Permalink
Fix crash when calling OSTerminateThread after OBS::~OBS
Browse files Browse the repository at this point in the history
  • Loading branch information
palana committed Oct 3, 2014
1 parent 73e46ec commit 9c10e0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/CrashDumpHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ LONG CALLBACK OBSExceptionHandler (PEXCEPTION_POINTERS exceptionInfo)
if (exceptionInfo->ExceptionRecord->ExceptionCode == EXCEPTION_BREAKPOINT)
{
HANDLE hVideoThread = NULL, hEncodeThread = NULL;
App->GetThreadHandles (&hVideoThread, &hEncodeThread);
if (App)
App->GetThreadHandles (&hVideoThread, &hEncodeThread);

if (hVideoThread)
{
Expand Down

0 comments on commit 9c10e0f

Please sign in to comment.