pipelka/xbmc-addon-xvdr — pull request #85 by herrnst (2012-11-16 22:53:35+00:00)
Title: [win32] workaround a crash in GetLanguageCode()

For some reason, when going the PVR-API-recommended way of GetDVDMenuLanguage() followed by FreeString() afterwards, this causes a crash on win32. Other platforms (linux tested) don't seem to cause problems. So workaround the crash by simply not freeing the two or three byte long string on reconnect to the XVDR server, risking a possible leak. As added bonus, inform users that a possible leak occured.

On a side note, I checked the other PVR addons. Only VNSI makes use of GetDVDMenuLanguage(), and doesn't care at all about freeing the string allocation, so I guess this will work until this gets resolved (in core?).