davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=4548c5a01b36c0a2d5f4824f95cf399dfe4306a1

commit 4548c5a01b36c0a2d5f4824f95cf399dfe4306a1
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Sun Feb 27 11:19:23 2022 +0100

    Fixes a memory error
    
    as reported at:
    https://phab.enlightenment.org/D12326
    and
    https://build.opensuse.org/request/show/945361
    
    thanks goes to Andreas Schwab and Simotek
---
 efl/evas/efl.evas_object_smart.pxi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/efl/evas/efl.evas_object_smart.pxi 
b/efl/evas/efl.evas_object_smart.pxi
index f4e2f29..edadcb9 100644
--- a/efl/evas/efl.evas_object_smart.pxi
+++ b/efl/evas/efl.evas_object_smart.pxi
@@ -67,7 +67,7 @@ cdef class SmartCbDescription:
 
     def __init__(self, name, types):
         cdef Evas_Smart_Cb_Description *tmp
-        tmp = <Evas_Smart_Cb_Description 
*>malloc(sizeof(Evas_Smart_Cb_Description*))
+        tmp = <Evas_Smart_Cb_Description 
*>malloc(sizeof(Evas_Smart_Cb_Description))
         if isinstance(name, unicode): name = PyUnicode_AsUTF8String(name)
         tmp.name = strdup(name)
         if isinstance(types, unicode): types = PyUnicode_AsUTF8String(types)

-- 


Reply via email to