Sfoglia il codice sorgente

sokol_audio.h: ARC vs no-ARC fix for iOS

Andre Weissflog 4 anni fa
parent
commit
4cd2da815a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      sokol_audio.h

+ 2 - 0
sokol_audio.h

@@ -1009,7 +1009,9 @@ _SOKOL_PRIVATE void _saudio_backend_shutdown(void) { };
 
 -(void)dealloc {
     [self remove_handler];
+    #if !__has_feature(objc_arc)
     [super dealloc];
+    #endif
 }
 
 -(void)remove_handler {