From 2d6bba41180b9876bce4bd855c07d45874e85e49 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 5 Mar 2010 23:55:31 +0000 Subject: [PATCH] Fix memory leak in wxDataViewListStore::DeleteItem(). The item data needs to be deleted in addition to simply removing it from the internal storage. Closes #11757. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/datavcmn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 99449244bb..de0608121e 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -1486,6 +1486,7 @@ void wxDataViewListStore::InsertItem( unsigned int row, const wxVector::iterator it = m_data.begin() + row; + delete *it; m_data.erase( it ); RowDeleted( row ); -- 2.45.2