Fixed leak observed by Mihaly due to primary tracks stored in the events that did not get de-registered.