]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/bmploader.cpp
Make it possible to load an image into an externally allocated buffer
[libs/gui.git] / source / graphics / bmploader.cpp
index d88e2aa6435f36f3c908bf3c274a9799a5b2339e..a3394635611ad93254727fbcae46b508ca54322e 100644 (file)
@@ -98,7 +98,6 @@ void BmpLoader::load_headers_(Image::Data &data)
 
 void BmpLoader::load_pixels_(Image::Data &data)
 {
-       data.pixels = new char[data.stride*data.height];
        if(invert_row_order)
        {
                for(unsigned y=0; y<data.height; ++y)