1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-18 00:54:19 +00:00

iOS: Fixed a crash in InAppPurchases

This commit is contained in:
Tom Poole 2019-06-27 15:37:23 +01:00
parent 19cebf8927
commit 0239c0cb7e

View file

@ -94,7 +94,16 @@ struct InAppPurchases::Pimpl : public SKDelegateAndPaymentObserver
/** AppStore implementation of hosted content download. */
struct DownloadImpl : public Download
{
DownloadImpl (SKDownload* downloadToUse) : download (downloadToUse) {}
DownloadImpl (SKDownload* downloadToUse)
: download (downloadToUse)
{
[download retain];
}
~DownloadImpl()
{
[download release];
}
String getProductId() const override { return nsStringToJuce (download.contentIdentifier); }
String getContentVersion() const override { return nsStringToJuce (download.contentVersion); }