(trunk qt) plug memory leak

This commit is contained in:
Charles Kerr
2009-06-01 14:11:52 +00:00
parent 56d7478b25
commit d1cd888df6
2 changed files with 2 additions and 1 deletions

View File

@@ -2,4 +2,4 @@
export G_SLICE=always-malloc
export G_DEBUG=gc-friendly
export GLIBCXX_FORCE_NEW=1
valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=64 --log-file=x-valgrind --show-reachable=yes ./qtr -r http://localhost:9091/
valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=64 --log-file=x-valgrind --show-reachable=yes ./qtr

View File

@@ -613,6 +613,7 @@ Session :: onRequestFinished( int id, bool error )
parseResponse( json, jsonLength );
}
delete sourceDevice;
myBuffer.buffer( ).clear( );
myBuffer.reset( );
assert( myBuffer.bytesAvailable( ) < 1 );