Support #1032

WStandradItemModel and WStandardItem dynamic allocation

Added by Anonymous over 1 year ago. Updated over 1 year ago.

Status:ClosedStart date:10/19/2011
Priority:NormalDue date:
Assignee:Koen Deforche% Done:

0%

Category:-
Target version:3.2.0

Description

Hi,
I am suspecting some memory leaks in my Wt application...
Please let me know if all dynamically allocated (WStandardItem ) objects added to (WStandardItemModel) with :
(WStandardItemModel *)->setItem( row, column, (WStandardItem *) )
are destroyed automatically when the parent (WStandardItemModel *) is destroyed ?

History

#1 Updated by Koen Deforche over 1 year ago

  • Status changed from New to Resolved

Hey,

If possible, use valgrind to determine what is leaking.

WStandardItemModel does indeed take ownership of the added WStandardItems, they will be deleted together with the model.

Regards,
koen

#2 Updated by Koen Deforche over 1 year ago

  • Status changed from Resolved to Closed
  • Target version set to 3.2.0

Also available in: Atom PDF