[Glade-users] memory management for treeview in dialog



I have been experimenting with a treeview in dialog, and have created a memory 
leak.  I am using glade to create code, not xml. My steps are:

(1) create the dialog
(2) show the dialog
(3) create a new tree store
(4) create a sort model
(5) add columns
(6) append rows & populate them
(7) when the user closes the dialog, I unref the model and sortmodel and I 
destroy the dialog widget

Each time I repeat creating the dialog, windows task manager memory graph 
shows more memory being consumed.

Can anyone please explain if there is any glaring issues with my process. It 
is possible my process for appending the rows( step 6 )may be at fault.

Thanks,
Kim



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]