]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filtfind.cpp
fixing overrelease and out-of-bounds write, fixes #13725
[wxWidgets.git] / src / common / filtfind.cpp
index bd7d5a6c8a84630f1b263c288bcc008fe5b80c04..c72cc6f47d5b078d915f59c332e70c8e83d5848b 100644 (file)
@@ -23,7 +23,7 @@
 // the filter classes they use.
 
 const wxFilterClassFactory *
-wxFilterClassFactory::Find(const wxChar *protocol, wxStreamProtocolType type)
+wxFilterClassFactory::Find(const wxString& protocol, wxStreamProtocolType type)
 {
     for (const wxFilterClassFactory *f = GetFirst(); f; f = f->GetNext())
         if (f->CanHandle(protocol, type))