libaurum: fix memory leak in takeScreenshot