tags:

views:

20

answers:

0

I have a c++ layer that talks to a db, this c++ layer does a new SomeObject() and returns it to java.

When is it safe for me to say delete SomeObject via my clean jni call. Can I delete as soon as java has the returned object or do I need to copy the object and then delete?