'ObjectAlloc'を使用して計測器でデバッグしているときに、renderInContext呼び出しに7メガのメモリが割り当てられていることに気付きましたが、解放されることはありません。私がrenderInContext呼び出しをコメントアウトすると、これは発生せず、将来のrenderInContext呼び出しはメモリ割り当てを増やし続けません。
UIGraphicsBeginImageContext(contentHolder.bounds.size);
[contentHolder.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
このメモリを強制的に解放する方法はありますか?