Tracktion / choc

A collection of header only classes, permissively licensed, to provide basic useful tasks with the bare-minimum of dependencies.
Other
529 stars 47 forks source link

WebView warnings #22

Closed otristan closed 1 year ago

otristan commented 1 year ago

Hi,

Using the webview module in a Juce application, I get some report in Xcode log view when closing the app.


objc[5483]: objc_disposeClassPair: class 'CHOCWebView_3566101704' still has subclasses, including 'NSKVONotifying_CHOCWebView_3566101704'!
objc[5483]: objc_disposeClassPair: class 'CHOCWebView_3566101704' still has subclasses, including 'NSKVONotifying_CHOCWebView_3566101704'!

Are those normal ? Or did forgot to clean something ?

Thanks !

julianstorer commented 1 year ago

Yes, they're really annoying - something in the objC key-value observer system is creating hidden subclasses of these classes, and hanging onto them until shutdown. I think to avoid the warning I'll add something that just leaks the class, as there doesn't seem to be any other option to make it outlive the thing that's using it.