Skip to content

Commit

Permalink
Merge pull request #5633 from FernetMenta/refclock
Browse files Browse the repository at this point in the history
videorefclock: fix potential segfault on systems which do not support vi...
  • Loading branch information
FernetMenta committed Nov 2, 2014
2 parents 48400b3 + 4049fad commit df4b51d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions xbmc/video/VideoReferenceClock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,13 @@ void CVideoReferenceClock::Process()
SingleLock.Leave();

//clean up the vblank clock
m_pVideoSync->Cleanup();
delete m_pVideoSync;
m_pVideoSync = NULL;
if (m_pVideoSync)
{
m_pVideoSync->Cleanup();
delete m_pVideoSync;
m_pVideoSync = NULL;
}

if (!SetupSuccess)
break;
}
Expand Down

0 comments on commit df4b51d

Please sign in to comment.