Ticket #8737: fix_crash_ChannelScannerSM.patch

File fix_crash_ChannelScannerSM.patch, 739 bytes (added by Rune Petersen <rune@…>, 10 years ago)
  • libs/libmythtv/channelscan/channelscan_sm.cpp

     
    202202    StopScanner();
    203203    VERBOSE(VB_CHANSCAN, LOC + "ChannelScanSMner Stopped");
    204204
     205    ScanStreamData *sd = NULL;
     206    if (GetDTVSignalMonitor())
     207    {
     208        sd = GetDTVSignalMonitor()->GetScanStreamData();
     209    }
     210
    205211    if (signalMonitor)
    206212    {
    207213        signalMonitor->RemoveListener(analogSignalHandler);
     
    209215        signalMonitor = NULL;
    210216    }
    211217
     218    delete sd;
     219
    212220    if (analogSignalHandler)
    213221    {
    214222        delete analogSignalHandler;