GRAPHICS: Fix possible memory leak.