Project

General

Profile

« Previous | Next » 

Revision 564d0193

Added by David Sorber almost 8 years ago

Fix simple but nasty memory leak.

View differences:

software/photo_compress_archiver/PhotoCompressArchiver.cc
<< percent << "%")
}
std::free(out_buffer);
delete work_unit;
}
WRKR_OUT_REG(" -- " << PURPLE << BOLD << "[[exiting]]" << ENDC)
// Clean up
std::free(out_buffer);
// Clean up
delete instance;
delete file_buffer;
}
software/photo_compress_archiver/PhotoCompressArchiver.hh
const std::string YELLOW("\033[33m");
const std::string PURPLE("\033[35m");
const std::string version("v0.3.4");
const std::string version("v0.3.5");
const boost::regex JPEG_REGEX("^.+\\.(jpg)|(jpeg)$", boost::regex::icase);
const boost::regex PJG_REGEX("^.+\\.pjg$", boost::regex::icase);

Also available in: Unified diff