Project

General

Profile

Actions

Support #1032

closed

WStandradItemModel and WStandardItem dynamic allocation

Added by Anonymous about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/19/2011
Due date:
% Done:

0%

Estimated time:

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 ?

Actions #1

Updated by Koen Deforche about 13 years 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

Actions #2

Updated by Koen Deforche almost 13 years ago

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

Also available in: Atom PDF