Removed several memory leaks.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5595 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -81,7 +81,8 @@ void FreeBitmap (Bitmap* B)
|
||||
{
|
||||
/* Alloc NULL pointers */
|
||||
if (B != 0) {
|
||||
/* Free the palette and then the bitmap */
|
||||
/* Free name, palette and then the bitmap */
|
||||
SB_Done (&B->Name);
|
||||
xfree (B->Pal);
|
||||
xfree(B);
|
||||
}
|
||||
@@ -190,7 +191,7 @@ unsigned GetBitmapColors (const Bitmap* B)
|
||||
case bmRGB:
|
||||
case bmRGBA: return (1U << 24);
|
||||
default: Internal ("Unknown bitmap type %u", B->Type);
|
||||
}
|
||||
}
|
||||
/* NOTREACHED */
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user