mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 06:32:42 +00:00
Avoid leaving an extra item in the stack when getThis() is used
This commit is contained in:
parent
de8ef623a6
commit
5bd2a01446
@ -397,7 +397,7 @@ void* Context::getThis()
|
|||||||
duk_push_this(m_handle);
|
duk_push_this(m_handle);
|
||||||
duk_get_prop_string(m_handle, -1, "\xFF" "\xFF" "ptr");
|
duk_get_prop_string(m_handle, -1, "\xFF" "\xFF" "ptr");
|
||||||
void* result = (void*)duk_to_pointer(m_handle, -1);
|
void* result = (void*)duk_to_pointer(m_handle, -1);
|
||||||
duk_pop(m_handle);
|
duk_pop_2(m_handle);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user