Fixed a possible crash in cDevice::StopSectionHandler()

This commit is contained in:
Klaus Schmidinger 2024-01-18 10:58:39 +01:00
parent f0da21ea13
commit e5ae02e3fa
3 changed files with 6 additions and 3 deletions

View File

@ -2556,6 +2556,7 @@ Markus Ehrnsperger <markus.ehrnsperger@googlemail.com>
transfer mode receiver device
for reporting broken video data streams on systems without output device when switching
live channel to a different transponder while recording
for fixing a possible crash in cDevice::StopSectionHandler()
Werner Färber <w.faerber@gmx.de>
for reporting a bug in handling the cPluginManager::Active() result when pressing

View File

@ -9863,7 +9863,9 @@ Video Disk Recorder Revision History
- The recording info of the default skins now shows the frame parameters of the
recording at the end of the description (if such information is available).
2024-01-17:
2024-01-18:
- Changed installing config files to handle potentially broken 'cp -n'.
- Fixed height calculation in progress display (thanks to Matthias Senzel).
- Fixed a possible crash in cDevice::StopSectionHandler() (thanks to Markus
Ehrnsperger).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: device.c 5.8 2023/02/21 09:31:47 kls Exp $
* $Id: device.c 5.9 2024/01/18 10:58:39 kls Exp $
*/
#include "device.h"
@ -673,11 +673,11 @@ void cDevice::StartSectionHandler(void)
void cDevice::StopSectionHandler(void)
{
if (sectionHandler) {
delete sectionHandler; // automatically detaches filters
delete nitFilter;
delete sdtFilter;
delete patFilter;
delete eitFilter;
delete sectionHandler;
nitFilter = NULL;
sdtFilter = NULL;
patFilter = NULL;