Skip to content
Commit ceececb8 authored by David Faure's avatar David Faure
Browse files

Fix memory leak due to recent port to std::unique_ptr

commit 8eec3450 replaced delete d_ptr
with a std::unique_ptr, but there's a catch in this class hierarchy,
as indicated by the comment about BasePrivate: its destructor isn't
virtual (on purpose) so one needs to delete a pointer with the right
derived type.

Detected by ASAN on bin/utiltest (and probably all others)
parent 604b68c5
Pipeline #91009 passed with stage
in 5 minutes and 50 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment