X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d610b90ffb5c212b429c717ebae5f605fc5fac7..5c737c4c37eb7d0687e06e005678299fe8557bc4:/src/common/gifdecod.cpp diff --git a/src/common/gifdecod.cpp b/src/common/gifdecod.cpp index a2137fab22..828afb82c8 100644 --- a/src/common/gifdecod.cpp +++ b/src/common/gifdecod.cpp @@ -126,7 +126,6 @@ bool wxGIFDecoder::ConvertToImage(wxImage *image) const else image->SetMask(FALSE); - // Set the palette if (pal) { unsigned char* r = new unsigned char[256]; @@ -466,9 +465,9 @@ int wxGIFDecoder::dgif(GIFImage *img, int interl, int bits) while (code != ab_fin); #ifdef __WXMAC__ - delete [] ab_prefix ; - delete [] ab_tail ; - delete [] stack ; + delete [] ab_prefix ; + delete [] ab_tail ; + delete [] stack ; #endif return 0; } @@ -505,7 +504,8 @@ int wxGIFDecoder::ReadGIF() unsigned char type = 0; unsigned char pal[768]; unsigned char buf[16]; - GIFImage **ppimg, *pimg, *pprev; + GIFImage **ppimg; + GIFImage *pimg, *pprev; /* check GIF signature */ if (!CanRead())