Fixed dropRing no longer deleting the ring pointer in DTSC::Stream
This commit is contained in:
parent
9f62fc4c91
commit
082dd2e7c8
1 changed files with 3 additions and 0 deletions
|
@ -409,6 +409,9 @@ DTSC::Ring * DTSC::Stream::getRing(){
|
||||||
/// Deletes a given out Ring class from memory and internal Ring list.
|
/// Deletes a given out Ring class from memory and internal Ring list.
|
||||||
/// Checks for NULL pointers and invalid pointers, silently discarding them.
|
/// Checks for NULL pointers and invalid pointers, silently discarding them.
|
||||||
void DTSC::Stream::dropRing(DTSC::Ring * ptr){
|
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.
|
/// Returns 0 if seeking is possible, -1 if the wanted frame is too old, 1 if the wanted frame is too new.
|
||||||
|
|
Loading…
Add table
Reference in a new issue