]> git.refcnt.org Git - colorize.git/commit
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)
commitafbfe4ff6003d2e148130d570fd46bf5dd3103bd
treebbd7ae584fa5206876808ad4b79a3353cd70dfaa
parentb046a247ae0220a415b085930992dae046d4439f
Stack and release color names memory

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.
colorize.c