Revert "Fix memory corruption bug."

This reverts commit c1363fa958.

The proper fix was already in 804335f9d2.
pull/1/head
Christian Beier 13 years ago
parent d1f013fc74
commit 984706076c

@ -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;
} }

Loading…
Cancel
Save