ecore_js: Add missing HandleScope to addTimeline
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Fri, 26 Aug 2016 20:18:13 +0000 (17:18 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 25 Oct 2016 14:23:34 +0000 (12:23 -0200)
src/bindings/js/ecore_js/ecore_js_animator.cc

index 322db17..8e2011d 100644 (file)
@@ -477,6 +477,7 @@ void register_animator_timeline_add(v8::Isolate *isolate,
                                     v8::Handle<v8::String> name)
 {
     using v8::Handle;
+    using v8::HandleScope;
     using v8::Local;
     using v8::Value;
     using v8::Undefined;
@@ -498,6 +499,7 @@ void register_animator_timeline_add(v8::Isolate *isolate,
               = reinterpret_cast<efl::eina::js::global_ref<Value>*>(data);
             auto o = persistent->handle();
             auto isolate = v8::Isolate::GetCurrent();
+            HandleScope handle_scope(isolate);
 
             Handle<Value> args = compatibility_new<Number>(isolate, pos);