Fixed reference counting memory leak.