]> git.refcnt.org Git - colorize.git/commitdiff
Stack and release color names memory
authorSteven Schubiger <stsc@refcnt.org>
Tue, 25 Oct 2016 12:18:09 +0000 (14:18 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Tue, 25 Oct 2016 12:18:09 +0000 (14:18 +0200)
Don't call the color_names memory freeing code explicitly in the
cleanup function as it is taken care of via {STACK,RELEASE}_VAR().
This implies the memory is "garbage collected" like other uses of
those macros, too.

Also, declare and initialize the color_names array in a non-global,
tighter scope.


No differences found