patched roundrect memory leak