virtual ~FigureSet() { if (mtx) mtx->release(); if (fig) fig->release(); if (tex) tex->release(); if (userObj) userObj->release(); }