Commit 5b269acd authored by Scott Wheeler's avatar Scott Wheeler

Fixed a memory leak.

svn path=/trunk/kdemultimedia/juk/; revision=143637
parent 021d2359
......@@ -62,6 +62,8 @@ MPEGHeader::MPEGHeader(const char* filein)
success = false;
fileglob = strdup(filein);
lengthchar = 0;
FILE* file;
if ((file = fopen(filein, "r")))
......@@ -77,6 +79,9 @@ MPEGHeader::MPEGHeader(const char* filein)
MPEGHeader::~MPEGHeader()
{
free(fileglob);
if(lengthchar)
free(lengthchar);
}
bool MPEGHeader::readLayerInfo (FILE* file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment