Categorized renderer: fix memory leak