Commit 46f70317 authored by Yves Starreveld's avatar Yves Starreveld

BUG: autorelease pool back in

parent 476e3f6a
......@@ -31,7 +31,7 @@
#define id Id // since id is a reserved token in ObjC and is used a _lot_ in vtk
vtkCxxRevisionMacro(vtkCocoaRenderWindow, "1.22");
vtkCxxRevisionMacro(vtkCocoaRenderWindow, "1.23");
vtkStandardNewMacro(vtkCocoaRenderWindow);
......@@ -410,14 +410,12 @@ void vtkCocoaRenderWindow::WindowInitialize ()
vtkCocoaGLView *glView;
#undef id
#define id Id
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
// create our own window if not already set
this->OwnWindow = 0;
// get the application instance if we don't have one already
if (!this->ApplicationInitialized)
{
//temporary remove the autorelease pool until a better solution is found
// NSAutoreleasePool *pool = (NSAutoreleasePool *)(this->AutoreleasePool);
// pool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
this->ApplicationInitialized=1;
}
......@@ -472,6 +470,7 @@ void vtkCocoaRenderWindow::WindowInitialize ()
this->OpenGLInit();
this->Mapped = 1;
[pool release];
}
//----------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment