X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bcaa23de098c1276b3f35716c9ea8b73cf3599bd..236a9de39afa090fdee3cf91cb5364ceca69e3f8:/src/common/list.cpp 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;