fixed memory allocation bug

Wed, 21 Jan 2015 20:38:21 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 21 Jan 2015 20:38:21 +0100
changeset 77
bc0ed99e49c7
parent 76
3782827378ab
child 78
135920fe441b

fixed memory allocation bug

ui/motif/list.c file | annotate | diff | comparison | revisions
--- a/ui/motif/list.c	Wed Jan 21 20:22:27 2015 +0100
+++ b/ui/motif/list.c	Wed Jan 21 20:38:21 2015 +0100
@@ -81,7 +81,7 @@
     if(f) {
         UiListViewEventData *event = ucx_mempool_malloc(
                 obj->ctx->mempool,
-                sizeof(UiEventData));
+                sizeof(UiListViewEventData));
         event->event.obj = obj;
         event->event.user_data = udata;
         event->event.callback = f;

mercurial