Fixed dropRing no longer deleting the ring pointer in DTSC::Stream

This commit is contained in:
Thulinma 2014-01-29 14:31:19 +01:00
parent 9f62fc4c91
commit 082dd2e7c8

View file

@ -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.