Fixed memory leak upon camera cleanup