1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Android: Fixed a potential crash in IAP GetProductsInformationJob

This commit is contained in:
ed 2019-07-17 16:04:44 +01:00
parent 4aad74d842
commit 58382a6576

View file

@ -340,7 +340,7 @@ struct InAppPurchases::Pimpl : private AsyncUpdater,
const Callback& callbackToUse)
: ThreadPoolJob ("GetProductsInformationJob"),
owner (parent),
packageName (LocalRef<jobject> (packageNameToUse.get())),
packageName (LocalRef<jobject> (getEnv()->NewLocalRef (packageNameToUse.get()))),
productIdentifiers (productIdentifiersToUse),
callback (callbackToUse)
{}