fix CFDictionary/Number/String combo memory leak in wxChoice - also gets rid of all the memory leaks in the display sample that i thought were mine...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -183,6 +183,7 @@ int wxChoice::GetSelection() const
|
|||||||
|
|
||||||
int wxChoice::DoAppend(const wxString& title)
|
int wxChoice::DoAppend(const wxString& title)
|
||||||
{
|
{
|
||||||
|
wxAutoNSAutoreleasePool pool;
|
||||||
NSMenu *nsmenu = [(NSPopUpButton*)m_cocoaNSView menu];
|
NSMenu *nsmenu = [(NSPopUpButton*)m_cocoaNSView menu];
|
||||||
NSMenuItem *item;
|
NSMenuItem *item;
|
||||||
if(m_sortedStrings)
|
if(m_sortedStrings)
|
||||||
|
Reference in New Issue
Block a user