diff --git a/examples/Utilities/PushNotificationsDemo.h b/examples/Utilities/PushNotificationsDemo.h index 6bf54d312c..56065a998b 100644 --- a/examples/Utilities/PushNotificationsDemo.h +++ b/examples/Utilities/PushNotificationsDemo.h @@ -260,7 +260,7 @@ private: #if JUCE_ANDROID // Note: this is not strictly speaking required param, just doing it here because it is the fastest way! - n.publicVersion = new PushNotifications::Notification(); + n.publicVersion.reset (new PushNotifications::Notification()); n.publicVersion->identifier = "blahblahblah"; n.publicVersion->title = "Public title!"; n.publicVersion->body = "Public body!";