[Interest] crash on OS X QListWidgetItem deletion
Shinnok
admin at shinnok.com
Fri Dec 11 08:37:47 CET 2015
Hey Thiago,
> On Dec 10, 2015, at 5:59 PM, Thiago Macieira <thiago.macieira at intel.com> wrote:
>
> On Thursday 10 December 2015 14:43:06 Shinnok wrote:
>> Hi,
>>
>> I'm having some trouble identifying the potential cause for this crash:
>> Tarsnap(7631,0x7fff734b5000) malloc: *** error for object 0x7fff5fbfb4a8:
>> pointer being freed was not allocated --
>> frame #2: 0x00007fff84e316e7 libsystem_c.dylib`abort + 129
>> frame #3: 0x00007fff877d9070 libsystem_malloc.dylib`free + 425
>> frame #4: 0x00000001004eb5f2 QtWidgets_debug`QMenu::~QMenu() + 34
>> frame #5: 0x000000010208079b
>> QtCore_debug`QObjectPrivate::deleteChildren() + 235 frame
>
> You added a child to the QWidget that was not created with "new". Given the
> pointer address, it is a stack variable.
This seems to be the QWidget that I set up with QListWidget::setItemWidget for QListWidgetItems. What is not clear to me and from the documentation who is taking ownership of that widget?
Thanks,
Shinnok
More information about the Interest
mailing list