summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuller, Alexander (A.) <amulle19@ford.com>2017-02-06 18:55:20 -0800
committerMuller, Alexander (A.) <amulle19@ford.com>2017-02-06 18:55:20 -0800
commite61260dbffc501f705146868de3b1d7d435bb299 (patch)
treeb435bd503cbec097137b96b44630b9ae287de3ae
parent82ac823737bab7a6492ee9681ce236907d720797 (diff)
downloadsdl_ios-hotfix/issue_518.tar.gz
Set compressionSession to null so we do not accidentally over-release it.hotfix/issue_518
-rw-r--r--SmartDeviceLink/SDLStreamingMediaManager.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLStreamingMediaManager.m b/SmartDeviceLink/SDLStreamingMediaManager.m
index 55a361bc7..d05daa93e 100644
--- a/SmartDeviceLink/SDLStreamingMediaManager.m
+++ b/SmartDeviceLink/SDLStreamingMediaManager.m
@@ -377,6 +377,7 @@ NS_ASSUME_NONNULL_BEGIN
if (self.compressionSession != NULL) {
VTCompressionSessionInvalidate(self.compressionSession);
CFRelease(self.compressionSession);
+ self.compressionSession = NULL;
}
}