]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imaggif.cpp
removed extremely user-unfriendly translations
[wxWidgets.git] / src / common / imaggif.cpp
index b2a1cdf79330f3333bdd42159c07d4c3999e6692..1aed9a28cbb4cb9ea4e2857d48f096eeecf1891c 100644 (file)
@@ -116,14 +116,8 @@ bool wxGIFHandler::SaveFile( wxImage * WXUNUSED(image),
 
 bool wxGIFHandler::DoCanRead( wxInputStream& stream )
 {
-    wxGIFDecoder *decod;
-    bool ok;
-
-    decod = new wxGIFDecoder(&stream);
-    ok = decod->CanRead();
-    delete decod;
-
-    return ok;
+    wxGIFDecoder decod(&stream);
+    return decod.CanRead();
 }
 
 #endif  // wxUSE_STREAMS