Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing line in package.cpp #50

Closed
a-klimashevsky opened this issue Apr 21, 2014 · 6 comments
Closed

missing line in package.cpp #50

a-klimashevsky opened this issue Apr 21, 2014 · 6 comments

Comments

@a-klimashevsky
Copy link

There is a missing line "env->DeleteLocalRef(media_overlay_id);" in a package.cpp file (Java_org_readium_sdk_android_Package_nativeGetSpineItems method).

@rkwright
Copy link
Member

Sorry, don't understand this issue. Can you clarify? What, exactly, is the issue?

@datalogics-bhaugen
Copy link
Contributor

I think the issue that is being raised here is that in package.cpp a jstring is created that is named media_overlay_id but that object is not deleted like the other jstring objects are deleted starting around line 631 in package.cpp .

I think this causes a leak of some sort but my understanding of this part of the JNI has never been crystal clear.

@a-klimashevsky
Copy link
Author

exactly!
in my case I have a book with 771 spine items

@yteitel
Copy link
Contributor

yteitel commented Apr 24, 2014

Hello,
I thought that this issue has been solved a while ago.
I work currently in the branch release/0.14 and in package.cpp line 637,
there is actually:
env->DeleteLocalRef(media_overlay_id);
I encourage you to check that the fix has been pushed to develop. I know
that the master branch is pretty old for now.

Yonathan

2014-04-24 13:44 GMT+02:00 Alex Klimashevsky notifications@github.com:

exactly!
in my case I have a book with 771 spine items

Reply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-41270502
.

@datalogics-bhaugen
Copy link
Contributor

@yteitel is right! It looks like this has been fixed in the develop branch

@rkwright
Copy link
Member

Closing this as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants