]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gifdecod.cpp
fix memory leak in wxScreenDC, fixes #13249
[wxWidgets.git] / src / common / gifdecod.cpp
index 36e8ed276edc93fc49f102767e635a021c0f7968..cd119826f20628255552a816eb5698f962417272 100644 (file)
@@ -138,7 +138,7 @@ bool wxGIFDecoder::ConvertToImage(unsigned int frame, wxImage *image) const
     image->Create(sz.GetWidth(), sz.GetHeight());
     image->SetType(wxBITMAP_TYPE_GIF);
 
-    if (!image->Ok())
+    if (!image->IsOk())
         return false;
 
     pal = GetPalette(frame);