]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagjpeg.cpp
fixed wxRadioBox::Enable() and Show() to enable/show the buttons as well
[wxWidgets.git] / src / common / imagjpeg.cpp
index 1e8457fc9b9a07f12613efb8a3ab81b453db8349..b6785c33f3869c381d18eaa7c72712930f6f18d2 100644 (file)
@@ -197,6 +197,7 @@ bool wxJPEGHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbos
        */
       if (verbose)
         wxLogError(_("JPEG: Couldn't load - file is probably corrupted."));
+      (cinfo.src->term_source)(&cinfo);
       jpeg_destroy_decompress(&cinfo);
       if (image->Ok()) image->Destroy();
       return FALSE;