aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.