aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorAurelien Aptel2016-09-30 14:00:51 +0200
committerAurelien Aptel2016-10-05 10:01:36 +0200
commit9d6026d8ec1ac503c1f08c036b0fa8afd3533b21 (patch)
tree6b46d8eda3d104a058197bb01c1af5a46a9e0d52 /src/alloc.c
parent4b347fe5368aedc161e172bd110e05e2f7f37463 (diff)
downloademacs-9d6026d8ec1ac503c1f08c036b0fa8afd3533b21.tar.gz
emacs-9d6026d8ec1ac503c1f08c036b0fa8afd3533b21.zip
* src/alloc.c: call only non-null finalizers
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 45234474a27..f33d93f83b4 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6899,7 +6899,8 @@ sweep_misc (void)
6899 else if (mblk->markers[i].m.u_any.type == Lisp_Misc_User_Ptr) 6899 else if (mblk->markers[i].m.u_any.type == Lisp_Misc_User_Ptr)
6900 { 6900 {
6901 struct Lisp_User_Ptr *uptr = &mblk->markers[i].m.u_user_ptr; 6901 struct Lisp_User_Ptr *uptr = &mblk->markers[i].m.u_user_ptr;
6902 uptr->finalizer (uptr->p); 6902 if (uptr->finalizer)
6903 uptr->finalizer (uptr->p);
6903 } 6904 }
6904#endif 6905#endif
6905 /* Set the type of the freed object to Lisp_Misc_Free. 6906 /* Set the type of the freed object to Lisp_Misc_Free.