xbmc/xbmc — pull request #1046 by exobuzz (2012-06-04 17:14:35+00:00)
Title: Changed JpegIo thumbnail creation to use malloc/free for dest buffer

Changed JpegIo thumbnail creation to use malloc/free rather than new/delete, as libjpeg will use realloc to increase the buffer as needed. Mixing them like this could have undefined effects or cause memory leaks. This code on the xbox1 version of xbmc did indeed leak.