Fix recently introduced crash in wxFileSystem::OpenFile() Fix the code after the changes of the recent b03850e367 (Reduce manual memory management in wxFileSystemHandler code, 2026-07-20) which wrongly destroyed the smart pointer too early.
| ... | ... | @@ -295,7 +295,7 @@ wxFSFile* wxLocalFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& |
| 295 | 295 | if ( !is->IsOk() )
|
| 296 | 296 | return nullptr;
|
| 297 | 297 | |
| 298 | - return new wxFSFile(is.get(),
|
|
| 298 | + return new wxFSFile(is.release(),
|
|
| 299 | 299 | location,
|
| 300 | 300 | wxEmptyString,
|
| 301 | 301 | GetAnchor(location)
|
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help