FACT++  1.0
JNIEXPORT void JNICALL Java_dim_ObjectDescriptor_deleteObjectDescriptor ( JNIEnv *  env,
jclass  nativeClass,
jlong  desc 
)

Definition at line 2527 of file dim_jni.c.

References DBGe, dim_Dbg_DESCRIPTORS, objectDescriptor_struct::entry, Memory::free(), Java_dim_ObjectDescriptor_copyIntoObject(), and objectDescriptor_struct::objectClass.

Referenced by Java_dim_ObjectDescriptor_addFieldToObjectDescriptor().

2528 {
2529  objectDescriptor_type* descriptor = (objectDescriptor_type*) desc;
2530 
2531  if(nativeClass){}
2532  DBGe(dim_Dbg_DESCRIPTORS) printf("DimJNI: Native.deleteObjectDescriptor %08lx\n", (dim_long)desc);
2533  (*env)->DeleteGlobalRef(env, descriptor->objectClass);
2534 //printf("free descriptor\n");
2535  free(descriptor->entry);
2536  free(descriptor);
2537  return;
2538 }
#define dim_Dbg_DESCRIPTORS
Definition: dim_jni.h:60
long dim_long
Definition: dim_common.h:57
void free(void *mem)
#define DBGe(test)
Definition: dim_jni.c:64

+ Here is the call graph for this function:

+ Here is the caller graph for this function: