[aseprite] 155/196: Avoid leaving an extra item in the stack when getThis() is used

Tobias Hansen thansen at moszumanska.debian.org
Wed Apr 20 18:50:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 5bd2a01446621ec56d0a0f4bccb34da964e1375b
Author: David Capello <davidcapello at gmail.com>
Date:   Wed Apr 6 17:18:54 2016 -0300

    Avoid leaving an extra item in the stack when getThis() is used
---
 src/script/engine.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/script/engine.cpp b/src/script/engine.cpp
index 484b211..bc54660 100644
--- a/src/script/engine.cpp
+++ b/src/script/engine.cpp
@@ -397,7 +397,7 @@ void* Context::getThis()
   duk_push_this(m_handle);
   duk_get_prop_string(m_handle, -1, "\xFF" "\xFF" "ptr");
   void* result = (void*)duk_to_pointer(m_handle, -1);
-  duk_pop(m_handle);
+  duk_pop_2(m_handle);
   return result;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list