Fixed wrong count to release temporary memory
commit806784e194c891feee064d4b75e17426f5dc9cd2
authorChristophe CURIS <christophe.curis@free.fr>
Thu, 15 Nov 2012 00:30:33 +0000 (15 01:30 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 15 Nov 2012 12:38:25 +0000 (15 12:38 +0000)
tree533dbee09a2f9c9cc7cb70c654dc68c42389aca1
parent5a3cab3cef8c98bc8de55b29e0d28b20d0baf293
Fixed wrong count to release temporary memory

As found by Rodolfo, it looks like there could be memory leak in the
function 'RSmoothScaleImage' because it reserveda given number of
memory blocs but used another count to free them after use.

This patch uses the same count for release as it seems this variable
is not modified in between. Took the opportunity as Rodolfo proposed
to convert a global variable to a local variable - this global
definition seems incorrect.
wrlib/scale.c