[Fix] Mem leaks helix

Original pr:https://github.com/xbmc/xbmc/pull/5974