Permalink
Browse files

Merge pull request #605 from YakBizzarro/val-fix

GRAPHICS: Fix for a Valgrind warning about an uninitialized value
  • Loading branch information...
2 parents 6ffdacf + a69f29d commit 9e46f19a12f924b84a153318c93c79aefa72d2e7 @aquadran aquadran committed Apr 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 graphics/pixelbuffer.cpp
View
@@ -31,7 +31,8 @@ PixelBuffer::PixelBuffer()
}
PixelBuffer::PixelBuffer(const PixelFormat &format, int buffersize, DisposeAfterUse::Flag dispose)
- : _buffer(NULL) {
+ : _buffer(NULL),
+ _dispose(DisposeAfterUse::NO) {
create(format, buffersize, dispose);
}

0 comments on commit 9e46f19

Please sign in to comment.