Use renderer_free_func instead of renderer->freeSymbol to call the renderer specific cleanup code (#3834)