[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
parent
2716ca41b0
commit
f948b8ff7e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue