From f948b8ff7eeb9f4e7530c464a97e0e7a7bf5b77b Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 20 Jun 2022 22:31:03 -0700 Subject: [PATCH] [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 --- Audio/CogPluginMulti.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Audio/CogPluginMulti.m b/Audio/CogPluginMulti.m index 54834a0c3..6bd90251d 100644 --- a/Audio/CogPluginMulti.m +++ b/Audio/CogPluginMulti.m @@ -112,6 +112,10 @@ static void *kCogDecoderMultiContext = &kCogDecoderMultiContext; } } +- (void)dealloc { + [self close]; +} + - (void)registerObservers { if(!observersAdded) { [theDecoder addObserver:self