xbmc/xbmc — pull request #5051 by FernetMenta (2014-07-17 10:02:10+00:00)
Title: fixed: some issues pointed out by valgrind

cherry-picked from @notspiff I dropped the change in CWinEventsX11Imp::CWinEventsX11Imp from original commit.