Giter Club home page Giter Club logo

Comments (4)

pyricau avatar pyricau commented on May 18, 2024

In Add_User, you call IabHelper.startSetup() with an anonymous class that implements IabHelper.OnIabSetupFinishedListener.

Do you call IabHelper.dispose() when Add_User is destroyed ?

Here is what the doc says:

 * When you are done with this object, don't forget to call {@link #dispose}
 * to ensure proper cleanup. This object holds a binding to the in-app billing
 * service, which will leak unless you dispose of it correctly. If you created
 * the object on an Activity's onCreate method, then the recommended
 * place to dispose of it is the Activity's onDestroy method.

from leakcanary.

pyricau avatar pyricau commented on May 18, 2024

If you indeed do already call IabHelper.dispose(), then it might be a more interesting leak. I'd need the heap dump to gather more info.

from leakcanary.

broakenmedia avatar broakenmedia commented on May 18, 2024

Fantastic, got it in one, thank you!

from leakcanary.

icoolguy1995 avatar icoolguy1995 commented on May 18, 2024

I am having the save issue, and I am calling helper.dispose(); in Ondestroy of my activity still leakcanary shows leak.

from leakcanary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.