Fixed memory leak also in MediaPortal render loop