X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bcaa23de098c1276b3f35716c9ea8b73cf3599bd..6e7b6cc6f79fdcacfda3cc4e498a6d6f77b75c4d:/src/common/list.cpp?ds=sidebyside diff --git a/src/common/list.cpp b/src/common/list.cpp index b56beb3dec..971dca379c 100644 --- a/src/common/list.cpp +++ b/src/common/list.cpp @@ -578,6 +578,7 @@ void wxStringList::DoCopy(const wxStringList& other) // Makes new storage for the strings wxStringList::wxStringList (const wxChar *first, ...) { + DeleteContents(TRUE); if ( !first ) return;