Commit 98470607 authored by Christian Beier's avatar Christian Beier

Revert "Fix memory corruption bug."

This reverts commit c1363fa9.

The proper fix was already in 804335f9.
parent d1f013fc
...@@ -134,13 +134,11 @@ void rfbTightCleanup(rfbScreenInfoPtr screen) ...@@ -134,13 +134,11 @@ void rfbTightCleanup(rfbScreenInfoPtr screen)
{ {
if(tightBeforeBufSize) { if(tightBeforeBufSize) {
free(tightBeforeBuf); free(tightBeforeBuf);
tightBeforeBuf = NULL;
tightBeforeBufSize=0; tightBeforeBufSize=0;
tightBeforeBuf = NULL; tightBeforeBuf = NULL;
} }
if(tightAfterBufSize) { if(tightAfterBufSize) {
free(tightAfterBuf); free(tightAfterBuf);
tightAfterBuf = NULL;
tightAfterBufSize=0; tightAfterBufSize=0;
tightAfterBuf = NULL; tightAfterBuf = NULL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment