From 24af2c638fb9665e274f14f87653f2e81dcfa6c2 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 22 May 2009 17:13:02 +0000 Subject: [PATCH] fix Mac GC problem related to clipboard clients (merge to 4.2) svn: r14922 --- src/wxcommon/wb_list.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wxcommon/wb_list.cxx b/src/wxcommon/wb_list.cxx index c7d864d0a2..e01bb4a080 100644 --- a/src/wxcommon/wb_list.cxx +++ b/src/wxcommon/wb_list.cxx @@ -396,7 +396,11 @@ Bool wxList::OnDeleteObject(wxObject *object) // mac platform only */ wxStringList::wxStringList (void): -wxList () +#ifdef wx_mac + wxList(kNoDestroyData, FALSE) +#else + wxList () +#endif { __type = wxTYPE_STRING_LIST; }