How to fix my application from leakage when using Qt 4.5?

Without any changes in my code, except for building against Qt 4.5, I get the following warning message when the application starts:

*** _NSAutoreleaseNoPool(): Object 0x50a1b0 of class NSCFNumber autoreleased with
no pool in place - just leaking

I do not use Objective-C in my code, but Qt 4.5 uses the new Cocoa back end instead of Carbon.

I am not sure how to address and correct this error message. Does anyone have a key?

+2
source share
1 answer

, , NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; [pool release]; . _NSAutoreleaseNoPool , , . , -autorelease Cocoa, autorelease Qt-, .

, Qt-, , , , , Qt/ Cocoa , , , .

+6

Source: https://habr.com/ru/post/1739404/


All Articles