WINGs: Do not allocate memory for a fixed-size short-lived buffer
commit62565b42f61f26fd502005658ed1fddf9425a4b4
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 10 Nov 2013 16:41:06 +0000 (10 17:41 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:04 +0000 (30 18:11 +0000)
tree9a108ad196fd15604bb60199bff9122705f3ea2a
parentd25631016e9c9779f5b293b0fd8239792052290a
WINGs: Do not allocate memory for a fixed-size short-lived buffer

Allocating memory with 'malloc' has a cost and participate to memory
fragmentation, so for a temporary buffer that has a fixed size let's
prefer allocating it on the stack.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WINGs/wfilepanel.c