Memory leak fix with turbo caputre