git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45138
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
wxArchiveInputStream *s = factory->NewStream(leftStream);
}
wxArchiveInputStream *s = factory->NewStream(leftStream);
+ if ( !s )
+ return NULL;
+
+ delete s;
+ return NULL;
+ }
+
#if WXWIN_COMPATIBILITY_2_6
#if WXWIN_COMPATIBILITY_2_6
- if (factory->IsKindOf(CLASSINFO(wxZipClassFactory)))
- ((wxZipInputStream*)s)->m_allowSeeking = true;
+ if (factory->IsKindOf(CLASSINFO(wxZipClassFactory)))
+ ((wxZipInputStream*)s)->m_allowSeeking = true;
#endif // WXWIN_COMPATIBILITY_2_6
#endif // WXWIN_COMPATIBILITY_2_6
- return new wxFSFile(s,
- key + right,
- GetMimeTypeFromExt(location),
- GetAnchor(location)
+ return new wxFSFile(s,
+ key + right,
+ GetMimeTypeFromExt(location),
+ GetAnchor(location)
- );
- }
-
- delete s;
- return NULL;
}
wxString wxArchiveFSHandler::FindFirst(const wxString& spec, int flags)
}
wxString wxArchiveFSHandler::FindFirst(const wxString& spec, int flags)