Fix possible memory leaks in OsgPainter