fix memleak
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 12 May 2005 16:49:56 +0000 (16:49 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 12 May 2005 16:49:56 +0000 (16:49 +0000)
lib/gdi/gpixmap.cpp

index 9e8219a..96a3e9b 100644 (file)
@@ -74,15 +74,8 @@ gSurfaceSystem::gSurfaceSystem(eSize size, int _bpp)
                bypp=(bpp+7)/8;
        }
        stride=x*bypp;
-       if (bpp==8)
-       {
-               clut.colors=256;
-               clut.data=new gRGB[clut.colors];
-       } else
-       {
-               clut.colors=0;
-               clut.data=0;
-       }
+       clut.colors=0;
+       clut.data=0;
        data=malloc(x*y*bypp);
 }