Commit d0c75cd7 authored by Steve Bennett's avatar Steve Bennett
Browse files

jim: fix sometimes overly zealous garbage collection



When checking for "weak" references where the only reference is in the
command hash table, need to check the reference count of the key in the hash
table (this is the command name), not the reference count of the object
we are using to look up the command. Without this it is possible that a reference
(typically a lambda) will be collected even though there is still a reference to it.

Signed-off-by: default avatarSteve Bennett <steveb@workware.net.au>
parent 340d0a09
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment