Ticket #5683: libs_libmythtv-delete-array.patch

File libs_libmythtv-delete-array.patch, 625 bytes (added by Erik Hovland <erik@…>, 13 years ago)

uses [] in a deletion of an array

  • mythtv/libs/libmythtv/mhi.cpp

    outputbuf is an array. It should be deleted as such.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     mythtv/libs/libmythtv/mhi.cpp |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/mythtv/libs/libmythtv/mhi.cpp b/mythtv/libs/libmythtv/mhi.cpp
    index c9162f4..e9fcf31 100644
    a b void MHIBitmap::CreateFromMPEG(const unsigned char *data, int length) 
    15351535                m_image.setPixel(j, i, qRgb(red, green, blue));
    15361536            }
    15371537        }
    1538         delete outputbuf;
     1538        delete [] outputbuf;
    15391539    }
    15401540
    15411541Close: