Added custom deleter for frame to decrease counter