|
From: CVS C. to T. <the...@li...> - 2010-08-25 22:05:14
|
Revision: 550
http://themis.svn.sourceforge.net/themis/?rev=550&view=rev
Author: mark_hellegers
Date: 2010-08-25 22:05:08 +0000 (Wed, 25 Aug 2010)
Log Message:
-----------
Stop leaking memory.
Modified Paths:
--------------
trunk/themis/framework/PrefsWin.cpp
trunk/themis/framework/PrefsWin.h
Modified: trunk/themis/framework/PrefsWin.cpp
===================================================================
--- trunk/themis/framework/PrefsWin.cpp 2010-08-24 22:35:43 UTC (rev 549)
+++ trunk/themis/framework/PrefsWin.cpp 2010-08-25 22:05:08 UTC (rev 550)
@@ -398,6 +398,14 @@
0) {
}
+PrefsListView :: ~PrefsListView() {
+
+ int32 items = fListView->CountItems();
+ for (int32 i = 0; i < items; i++) {
+ delete fListView->RemoveItem((int32) 0);
+ }
+ fListView->MakeEmpty();
+}
void PrefsListView :: AttachedToWindow() {
Modified: trunk/themis/framework/PrefsWin.h
===================================================================
--- trunk/themis/framework/PrefsWin.h 2010-08-24 22:35:43 UTC (rev 549)
+++ trunk/themis/framework/PrefsWin.h 2010-08-25 22:05:08 UTC (rev 550)
@@ -61,6 +61,7 @@
public:
PrefsListView(BRect frame);
+ virtual ~PrefsListView();
virtual void AttachedToWindow();
int32 CurrentSelection();
void Select(int32 which);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|