MacOS: crash on withdraw notification
Calling g_application_withdraw_notification crashes
for us on MacOS:
0 libobjc.A.dylib 0x00007fff71419184 objc_release + 36
1 com.apple.CoreFoundation 0x00007fff4a1b5b6e cow_cleanup + 126
2 com.apple.CoreFoundation 0x00007fff4a0b554d -[__NSArrayM dealloc] + 45
3 libobjc.A.dylib 0x00007fff7141a087 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 817
4 com.apple.CoreFoundation 0x00007fff4a0ccd76 _CFAutoreleasePoolPop + 22
5 com.apple.Foundation 0x00007fff4c1ff7fd -[NSAutoreleasePool drain] + 144
6 libgdk-3.0.dylib 0x00000001076ef4e2 0x1076b9000 + 222434
7 libglib-2.0.0.dylib 0x0000000106917296 g_main_context_prepare + 309
8 libglib-2.0.0.dylib 0x0000000106917a11 0x1068e8000 + 195089
9 libglib-2.0.0.dylib 0x0000000106917b99 g_main_context_iteration + 55
10 libgio-2.0.0.dylib 0x0000000106a9dc08 g_application_run + 425
It seems that simply removing the following line from the implementation of g_cocoa_notification_backend_withdraw_notification
fixes the problem
[notifications release];
I know nothing about obj-c and cocoa, but maybe that deallocation is managed automatically?