diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs-module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c index ba996982604..7e0ba3c16c1 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c | |||
| @@ -328,7 +328,10 @@ module_free_global_ref (emacs_env *env, emacs_value ref) | |||
| 328 | set_hash_value_slot (h, i, value); | 328 | set_hash_value_slot (h, i, value); |
| 329 | } | 329 | } |
| 330 | else | 330 | else |
| 331 | hash_remove_from_table (h, obj); | 331 | { |
| 332 | eassert (refcount == 0); | ||
| 333 | hash_remove_from_table (h, obj); | ||
| 334 | } | ||
| 332 | } | 335 | } |
| 333 | 336 | ||
| 334 | if (module_assertions) | 337 | if (module_assertions) |