View previous topic :: View next topic |
Author |
Message |
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Tue Jan 10, 2012 1:22 pm Post subject: |
|
|
The garbage collector in Mac OS X is optional and disabled by default (if I recall correctly). |
|
Back to top |
|
|
salamander
Joined: 24 May 2011 Posts: 11
|
Posted: Sat Jan 14, 2012 9:44 am Post subject: |
|
|
So far the fix works for me. If it stops working, or if your NSApplication is leaking massively then we'll have to reexamine. |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Sun Jan 15, 2012 4:53 am Post subject: |
|
|
I don't think it will leak, or it depends on how you see it. The clean up happens when the application quits and then the OS will reclaim the memory anyway. |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
|
Back to top |
|
|
salamander
Joined: 24 May 2011 Posts: 11
|
Posted: Sun Feb 12, 2012 4:33 pm Post subject: |
|
|
Quote: | I've been thinking some more on this issue. I'm wondering if it has anything to do with what the documentation for NSAutoreleasePool says:
Code:
You should always drain an autorelease pool in the same context (invocation of a method or function, or body of a loop) that it was created |
You may be right. But 1, I hear SDL 2.0 doesn't have this issue, which means the upgrade will solve it (cross fingers), and 2, the issue seems to have receded into the depths in my own program, which means I'm thankfully ignoring it for now! |
|
Back to top |
|
|
|