[Cog Decoder Multi] Add dealloc function to close

Add dealloc function to close the file container, in case the caller
neglected to do so on its own.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-20 22:31:03 -07:00
parent 2716ca41b0
commit f948b8ff7e
1 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,10 @@ static void *kCogDecoderMultiContext = &kCogDecoderMultiContext;
} }
} }
- (void)dealloc {
[self close];
}
- (void)registerObservers { - (void)registerObservers {
if(!observersAdded) { if(!observersAdded) {
[theDecoder addObserver:self [theDecoder addObserver:self