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:
parent
19cebf8927
commit
0239c0cb7e
1 changed files with 10 additions and 1 deletions
|
|
@ -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); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue