From b3164fa16143dc0dcc97fecf6cc2a1f7c43a79df Mon Sep 17 00:00:00 2001 From: Lars Doucet Date: Tue, 5 Apr 2016 15:13:56 -0500 Subject: [PATCH] Update ExternalInterface.cpp Fix audio crash bug for embedded audio (thanks @mauvecow!) --- project/src/ExternalInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/src/ExternalInterface.cpp b/project/src/ExternalInterface.cpp index b256cf382..c123f5993 100644 --- a/project/src/ExternalInterface.cpp +++ b/project/src/ExternalInterface.cpp @@ -164,7 +164,8 @@ namespace lime { } else { - bytes = Bytes (data); + bytes = Bytes(); + bytes.Set(data); resource = Resource (&bytes); }