mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Javascript: Fix dangling pointer
This commit is contained in:
parent
606a7bc552
commit
ced6347505
1 changed files with 1 additions and 1 deletions
|
|
@ -933,7 +933,7 @@ public:
|
|||
ctx };
|
||||
|
||||
|
||||
if (const auto* propertyNames = discardError (quickJSToJuce (names)).getArray())
|
||||
if (auto v = discardError (quickJSToJuce (names)); const auto* propertyNames = v.getArray())
|
||||
{
|
||||
for (const auto& name : *propertyNames)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue