From 082dd2e7c811be35cbd9b8e9aabccf13b00a685e Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 29 Jan 2014 14:31:19 +0100 Subject: [PATCH] Fixed dropRing no longer deleting the ring pointer in DTSC::Stream --- lib/dtsc.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dtsc.cpp b/lib/dtsc.cpp index c81c516d..93f26d28 100644 --- a/lib/dtsc.cpp +++ b/lib/dtsc.cpp @@ -409,6 +409,9 @@ DTSC::Ring * DTSC::Stream::getRing(){ /// Deletes a given out Ring class from memory and internal Ring list. /// Checks for NULL pointers and invalid pointers, silently discarding them. void DTSC::Stream::dropRing(DTSC::Ring * ptr){ + if (ptr){ + delete ptr; + } } /// Returns 0 if seeking is possible, -1 if the wanted frame is too old, 1 if the wanted frame is too new.