Skip to content
Snippets Groups Projects
Commit 823abe03 authored by Julian Bouzas's avatar Julian Bouzas
Browse files

m-lua-scripting: fix reference count in object manager's lookup API

parent b7b3ce21
No related branches found
No related tags found
No related merge requests found
......@@ -395,7 +395,7 @@ object_manager_lookup (lua_State *L)
WpObject *o = NULL;
if (lua_isuserdata (L, 2)) {
WpObjectInterest *oi = wplua_checkboxed (L, 2, WP_TYPE_OBJECT_INTEREST);
o = wp_object_manager_lookup_full (om, oi);
o = wp_object_manager_lookup_full (om, wp_object_interest_ref (oi));
} else {
o = wp_object_manager_lookup (om, WP_TYPE_OBJECT, NULL);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment