aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Aptel2016-09-30 14:00:51 +0200
committerAurelien Aptel2016-09-30 14:03:14 +0200
commitd9ce9c8f4fb9fb96e4ff4fcab7d057031d2b523a (patch)
treea29d89242eb37062a038ab23577d068ec324cb0f
parent6133d656d0a62fa9b45d84d7f71862f577bf415c (diff)
downloademacs-d9ce9c8f4fb9fb96e4ff4fcab7d057031d2b523a.tar.gz
emacs-d9ce9c8f4fb9fb96e4ff4fcab7d057031d2b523a.zip
* src/alloc.c: call only non-null finalizers
-rw-r--r--src/alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 41b2f9e77d2..8dae6bffbd9 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6907,7 +6907,8 @@ sweep_misc (void)
6907 else if (mblk->markers[i].m.u_any.type == Lisp_Misc_User_Ptr) 6907 else if (mblk->markers[i].m.u_any.type == Lisp_Misc_User_Ptr)
6908 { 6908 {
6909 struct Lisp_User_Ptr *uptr = &mblk->markers[i].m.u_user_ptr; 6909 struct Lisp_User_Ptr *uptr = &mblk->markers[i].m.u_user_ptr;
6910 uptr->finalizer (uptr->p); 6910 if (uptr->finalizer)
6911 uptr->finalizer (uptr->p);
6911 } 6912 }
6912#endif 6913#endif
6913 /* Set the type of the freed object to Lisp_Misc_Free. 6914 /* Set the type of the freed object to Lisp_Misc_Free.