]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_filter.cpp
fix memory leak in wxScreenDC, fixes #13249
[wxWidgets.git] / src / common / fs_filter.cpp
index 4a96eed7f131b53c0e75314e65a82b6e9e1e66d6..628a34af0e6f3c191592a9291bae76840a560872 100644 (file)
 
 #include "wx/fs_filter.h"
 
-#ifndef WXPRECOMP
+#ifndef WX_PRECOMP
 #endif
 
-#include "wx/ptr_scpd.h"
+#include "wx/scopedptr.h"
 
 wxDEFINE_SCOPED_PTR_TYPE(wxFSFile)
 wxDEFINE_SCOPED_PTR_TYPE(wxInputStream)
@@ -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