xbmc/xbmc — pull request #1729 by dragonflight (2012-11-04 23:37:47+00:00)
Title: FIX memory leaks in HTTPDirecdtory and ExternalPLayer.cpp

Added GetReplaceStdString to class CRegExp returning a CStdString instead of a malloc'd one
replaced GetReplaceString by GetReplaceStdString in HTTPDirecdtory and ExternalPLayer.cpp

While looking at cleanString I noticed a fix for a mem leak with GetReplaceString, so I did a global search and found these other cases. I thought it cleaner to add the new function than create temp variables and then free them in the code.