diff options
author | Monroe Linden <monroe@lindenlab.com> | 2010-06-25 14:18:22 -0700 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2010-06-25 14:18:22 -0700 |
commit | fd799ca57ecce0db70ddc05953f0f1e9a81d51d4 (patch) | |
tree | d3878b2f652ef20a5e18a68f441c9263d30ff086 /indra/llwindow | |
parent | 92c33da517fc313ee79011fb072ea116c24e0dfc (diff) |
Fix for EXT-8089 (Log spam from SLPlugin about "autoreleased with no pool in place - just leaking")
Added slplugin-objc.mm.
Made SLPlugin do the cocoa setup during initialization, and create/delete an
autorelease pool each time through its main loop. This should make plugin code
that's using autorelease correctly not leak.
Fixed a bug in the version of setupCocoa() used in the viewer (it was never
setting its "inited" variable).
Diffstat (limited to 'indra/llwindow')
-rw-r--r-- | indra/llwindow/llwindowmacosx-objc.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowmacosx-objc.mm b/indra/llwindow/llwindowmacosx-objc.mm index 3a822a93a6..01e04dbb07 100644 --- a/indra/llwindow/llwindowmacosx-objc.mm +++ b/indra/llwindow/llwindowmacosx-objc.mm @@ -64,6 +64,8 @@ void setupCocoa() [[[NSWindow alloc] init] release]; [pool release]; + + inited = true; } } |