Open rouault opened 2 days ago
Download Windows builds of this PR for testing. Debug symbols for this build are available here. (Built from commit 5a1ebdb1a541ef20346f06d20a7f2be35f6dbac7)
Download Windows Qt6 builds of this PR for testing. (Built from commit 5a1ebdb1a541ef20346f06d20a7f2be35f6dbac7)
@rouault I've reached out to the PyQt list to see if we can get https://github.com/qgis/QGIS/pull/59513 in shape. If so, then we could just switch the original methods over to the unique_ptr variants and avoid the double-API...
If we had those 2 new variants and used them, we would have immediately detected the issue fixed by https://github.com/qgis/QGIS/pull/59511, because the std::move() would have zeroed the smart pointer causing an immediate null-ptr derefrence when later used.
There is no good reason in 2024 to use explicit new and delete :-)