2. Added wxAutoNSAutoreleasePool to CreateButtonCell() and Realize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24887
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxToolBarTool::CreateButtonCell()
{
bool wxToolBarTool::CreateButtonCell()
{
+ wxAutoNSAutoreleasePool pool;
+
NSImage *nsimage = [m_bmpNormal.GetNSImage(true) retain];
m_cocoaNSButtonCell = [[NSButtonCell alloc] initTextCell:nil];
[m_cocoaNSButtonCell setImage:nsimage];
NSImage *nsimage = [m_bmpNormal.GetNSImage(true) retain];
m_cocoaNSButtonCell = [[NSButtonCell alloc] initTextCell:nil];
[m_cocoaNSButtonCell setImage:nsimage];
void wxToolBar::Init()
{
m_owningFrame = NULL;
void wxToolBar::Init()
{
m_owningFrame = NULL;
+ m_mouseDownTool = NULL;
}
wxToolBar::~wxToolBar()
}
wxToolBar::~wxToolBar()
bool wxToolBar::Realize()
{
bool wxToolBar::Realize()
{
+ wxAutoNSAutoreleasePool pool;
+
wxToolBarToolsList::compatibility_iterator node;
NSSize totalSize = NSZeroSize;
// This is for horizontal, TODO: vertical
wxToolBarToolsList::compatibility_iterator node;
NSSize totalSize = NSZeroSize;
// This is for horizontal, TODO: vertical