From: Kensuke M. <mat...@ki...> - 2012-07-17 06:37:10
|
Hi, I had similar problem on CGContext, so I'm using '--xmlvm-new-ios-api' now. Rev 2118 commit comment says "Fixed UIGraphics.popContext() & removed the CFRelease in CFType's finalize". >> I am curious how CGBitmapContextRefs generated by >> CGBitmapContext.create() are handled, if at all. A similar issue arises >> with CGImageRef created. > > CGBitmapContext is derived from CFType. The latter overrides finalize(). > The somewhat funny thing is that the code in > org_xmlvm_iphone_CFType_finalize_org_xmlvm_iphone_CFType__() is > commented out. Not sure how that happened. :) > >> So I am wondering: >> 1) Is "CG" resource management being done in the c implementation? If >> so, how? > > Yes, via CFType.finalize(), except that the CFRelease() is commented out > in the C backend (I have no idea why). > -- 松崎 憲介 (MATSUZAKI Kensuke) |