Fix bug in module_free_global_ref (Bug#27587)

* src/emacs-module.c (module_free_global_ref): Actually remove entry
from hash table.

Copyright-paperwork-exempt: yes
This commit is contained in:
Valentin Gatien-Baron 2017-07-10 00:08:52 +02:00 committed by Philipp Stephani
parent bb2ea81bc5
commit 22af69906c

View file

@ -328,7 +328,7 @@ module_free_global_ref (emacs_env *env, emacs_value ref)
set_hash_value_slot (h, i, value);
}
else
hash_remove_from_table (h, value);
hash_remove_from_table (h, obj);
}
if (module_assertions)