raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=19724dc3e80067c5778ef878fded51851964f9dc

commit 19724dc3e80067c5778ef878fded51851964f9dc
Author: Carsten Haitzler <[email protected]>
Date:   Mon Apr 4 15:02:38 2022 +0100

    pointer - null out deleted strings
    
    avoids them being accessed incorrectly later
    @fix
---
 src/bin/e_pointer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/e_pointer.c b/src/bin/e_pointer.c
index dd4df9b90..61ffe45bc 100644
--- a/src/bin/e_pointer.c
+++ b/src/bin/e_pointer.c
@@ -922,7 +922,9 @@ e_pointer_reset(E_Pointer *ptr)
    E_FREE_LIST(ptr->stack, _e_pointer_stack_free);
 
    eina_stringshare_del(ptr->type);
+   ptr->type = NULL;
    eina_stringshare_del(ptr->deferred_type);
+   ptr->deferred_type = NULL;
 
    /* reset pointer to default */
    e_pointer_type_push(ptr, ptr, "default");

-- 


Reply via email to