]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_filter.cpp
fixed crash when setting locale
[wxWidgets.git] / src / common / fs_filter.cpp
index 4a96eed7f131b53c0e75314e65a82b6e9e1e66d6..621fed3a233a36b0f5896a00da631e40f3f36cbd 100644 (file)
@@ -17,7 +17,7 @@
 
 #include "wx/fs_filter.h"
 
-#ifndef WXPRECOMP
+#ifndef WX_PRECOMP
 #endif
 
 #include "wx/ptr_scpd.h"
@@ -56,7 +56,7 @@ wxFSFile* wxFilterFSHandler::OpenFile(
     if (!leftStream.get() || !leftStream->IsOk())
         return NULL;
 
-    wxInputStreamPtr stream(factory->NewStream(leftStream.get()));
+    wxInputStreamPtr stream(factory->NewStream(leftStream.release()));
 
     // The way compressed streams are supposed to be served is e.g.:
     //  Content-type: application/postscript