projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b347fe
)
* src/alloc.c: call only non-null finalizers
author
Aurelien Aptel
<aaptel@suse.com>
Fri, 30 Sep 2016 12:00:51 +0000
(14:00 +0200)
committer
Aurelien Aptel
<aaptel@suse.com>
Wed, 5 Oct 2016 08:01:36 +0000
(10:01 +0200)
src/alloc.c
patch
|
blob
|
history
diff --git
a/src/alloc.c
b/src/alloc.c
index 45234474a274bea3d96bed2738e61963afc30ab9..f33d93f83b47c81273d66bb46bdcc0bd2d57d84c 100644
(file)
--- a/
src/alloc.c
+++ b/
src/alloc.c
@@
-6899,7
+6899,8
@@
sweep_misc (void)
else if (mblk->markers[i].m.u_any.type == Lisp_Misc_User_Ptr)
{
struct Lisp_User_Ptr *uptr = &mblk->markers[i].m.u_user_ptr;
- uptr->finalizer (uptr->p);
+ if (uptr->finalizer)
+ uptr->finalizer (uptr->p);
}
#endif
/* Set the type of the freed object to Lisp_Misc_Free.