プラットフォーム/フレームワーク/ベース/コア/jni/android/graphics/BitmapFactory.cpp:212 ...
if (peeker.fPatchIsValid) {
size_t ninePatchArraySize = peeker.fPatch->serializedSize();
ninePatchChunk = env->NewByteArray(ninePatchArraySize); **<= alloc here**
if (NULL == ninePatchChunk) {
return nullObjectReturn("ninePatchChunk == null");
}
jbyte* array = (jbyte*)env->GetPrimitiveArrayCritical(ninePatchChunk,
NULL);
if (NULL == array) {
**<= should we release ninePatchChunk here**
return nullObjectReturn("primitive array == null");
}
peeker.fPatch->serialize(array);
env->ReleasePrimitiveArrayCritical(ninePatchChunk, array, 0);
}
GC はこのオブジェクトを認識しますか、それともこれを行う必要がありますか?