Skip to content

Commit

Permalink
Merge pull request #42 from raymanfx/fix
Browse files Browse the repository at this point in the history
linux: Fix memory corruption on stream stop
  • Loading branch information
trcwm committed Aug 27, 2020
2 parents d90ac49 + 44954d1 commit e34ee54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/platformstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ void PlatformStream::close()
m_owner = nullptr;
m_width = 0;
m_height = 0;
m_frameBuffer.resize(0);
m_isOpen = false;
m_quitThread = true;

Expand All @@ -374,6 +373,7 @@ void PlatformStream::close()
m_helperThread = nullptr;
}

m_frameBuffer.resize(0);
::close(m_deviceHandle);

m_deviceHandle = -1;
Expand Down

0 comments on commit e34ee54

Please sign in to comment.