From b91fdb82ba0b315130d2f45ab7f5caf816dfa756 Mon Sep 17 00:00:00 2001 From: Dave Andreoli Date: Sun, 27 Feb 2022 11:22:10 +0100 Subject: [PATCH] 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 (cherry picked from commit 4548c5a01b36c0a2d5f4824f95cf399dfe4306a1) --- 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 = malloc(sizeof(Evas_Smart_Cb_Description*)) + tmp = 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)