MCPcopy Create free account
hub / github.com/davisking/dlib / ~array

Method ~array

dlib/java/java_array.h:334–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332#endif
333
334 ~array()
335 {
336 if (ref)
337 {
338 // Don't delete the reference if it's a local reference, since the only reason
339 // we will normally be using array object's that contain local references
340 // is because we plan on returning the newly constructed array back to the JVM,
341 // which automatically frees local references using the normal JVM garbage
342 // collection scheme.
343 if (is_global_ref)
344 JNI_GetEnv()->DeleteGlobalRef(ref);
345
346 ref = NULL;
347 is_global_ref = false;
348 }
349 }
350
351 size_t size() const
352 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected