1
0
Fork 0
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:
attila 2024-07-05 17:17:56 +02:00
parent 606a7bc552
commit ced6347505

View file

@ -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)
{