[Interest] Double free in QItemDelegate editor

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Thu Sep 3 23:49:10 CEST 2020


Il 03/09/20 22:51, Kyle Edwards via Interest ha scritto:
> My project (CMake GUI) has a class which extends QItemDelegate and
> overrides QItemDelegate::createEditor(). However, the editor that gets
> returned by this method gets double-freed, and I'm not sure exactly why.
> (I did notice that QItemDelegate::destroyEditor() calls the editor's
> QObject::deleteLater() by default - does the editor already get deleted
> when its parent gets deleted?)

Do you have a minimal testcase? What does valgrind / ASAN say?

Thanks,
-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200903/01bbfc8e/attachment.bin>


More information about the Interest mailing list