From 8e70a9b894cf4696c9b20c695a1863536987e7b4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 26 Apr 2015 09:58:10 +0200 Subject: [PATCH] - added a NULL check to FMODStreamCapsule destructor, just to be safe. --- src/sound/fmodsound.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sound/fmodsound.cpp b/src/sound/fmodsound.cpp index 44a42819f..9559e2b70 100644 --- a/src/sound/fmodsound.cpp +++ b/src/sound/fmodsound.cpp @@ -331,7 +331,10 @@ public: { Stream->release(); } - delete Reader; + if (Reader != NULL) + { + delete Reader; + } } void SetStream(FMOD::Sound *stream)