Skip to main content

Ready to market your stellar app?

Samsung Developer Program is your gateway to app monetization success.

Learn More

Samsung Developer Program

Disposing of OpenIabHelper

To prevent memory leaks or free memory, dispose of the OpenIabHelper previously created by onCreate().
public void onDestroy() {
            // very important:
    Log.d(TAG, "Destroying helper.");
    if (mHelper != null) mHelper.dispose();
    mHelper = null;

  • Was this article helpful?