|
From: | Ivan Vučica |
Subject: | Re: Memory leaks galore! |
Date: | Wed, 20 Feb 2013 22:54:42 +0100 |
On 20. 2. 2013., at 20:50, Jamie Ramone <address@hidden> wrote:
GNUstep runs on a large amount of systems, and in fact, there are additional implementations of OPENSTEP/Cocoa targeting embedded systems because authors perceive GNUstep is large and slow. I don't know -- someone may have a use case. Sure, it's rare, but GNUstep doesn't really shy away from rare configurations or use cases :-)
<smartass> You could always write a script that filters out these warnings. </smartass> ;)
<3 sarcasm. :-)
That's precisely how I do things, but what I'm talking about is this. And that's in context of "the only thing that would **require** calling -dealloc (by, of course, calling -release) during program shutdown is network connections and similar things". And the Word of God right now is -- "don't use -dealloc to do that, it's error prone, and you don't really know how the object graph will be torn down". Quoting: <Apple>
</Apple> So -- they basically recommend "clean up system resources in a separate method, don't piggy-back on -dealloc".
Recompile, of course :-) The "let's-call-it-problematic" code is in implementation file, in GSPrivateBuildStrings(), and it gets compiled into the library. By just changing the macro in your code, what it expands into in GSPrivateBuildStrings() didn't actually change. By the way, can you try getting some valgrind info about the 390kb that is not-deallocated-but-is-still-reachable-so-we-didn't-print-it-out? |
[Prev in Thread] | Current Thread | [Next in Thread] |