Ticket #2023: analogscan_memleak.patch

File analogscan_memleak.patch, 433 bytes (added by russell@…, 14 years ago)
  • libs/libmythtv/analogscan.cpp

     
    109109        emit serviceScanPCTComplete((i * 100) / count);
    110110    }
    111111    channel->Close();
    112     delete channel;
    113112
    114113  do_scan_end:
     114    if (channel)
     115        delete channel;
    115116    emit serviceScanComplete();
    116117}
    117118