[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 9d6026d: * src/alloc.c: call only non-null finali
From: |
Aurélien Aptel |
Subject: |
[Emacs-diffs] emacs-25 9d6026d: * src/alloc.c: call only non-null finalizers |
Date: |
Wed, 5 Oct 2016 08:01:52 +0000 (UTC) |
branch: emacs-25
commit 9d6026d8ec1ac503c1f08c036b0fa8afd3533b21
Author: Aurelien Aptel <address@hidden>
Commit: Aurelien Aptel <address@hidden>
* src/alloc.c: call only non-null finalizers
---
src/alloc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/alloc.c b/src/alloc.c
index 4523447..f33d93f 100644
--- 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 9d6026d: * src/alloc.c: call only non-null finalizers,
Aurélien Aptel <=