Ticket #4307: mythtv_NVR_txtbuf_leak2.diff

File mythtv_NVR_txtbuf_leak2.diff, 498 bytes (added by Shane Shrybman <gnome42@…>, 18 years ago)

NVR::Reset() text buffer leak

  • libs/libmythtv/NuppelVideoRecorder.cpp

     
    21812181    for (int i = 0; i < text_buffer_count; i++)
    21822182    {
    21832183        txtbuffertype *txtbuf = textbuffer[i];
    2184         txtbuf->buffer = new unsigned char[text_buffer_size];
    21852184        txtbuf->freeToEncode = 0;
    21862185        txtbuf->freeToBuffer = 1;
    21872186    }