[Pyobjc-dev] memory leak
Brought to you by:
ronaldoussoren
From: Daniel L. d. S. <dan...@gm...> - 2011-05-08 17:51:40
|
Hello, I have some python code in a pyobjc app. At some point I want to initialize a NSString : string = NSString.alloc().init() In the terminal I get the following output : /Users/dlsa/code/cirrusstore/client/build/cirrusclient.app/Contents/Resources/menubaractions.py:44: UninitializedDeallocWarning: leaking an uninitialized object of type NSPlaceholderString string = NSString.alloc().init() I have in my objective C bootstrap code the creation of an Auto release pool. If I try : string = NSString.alloc().init().autorelease() I get the same warning. Why does this happen ? |