fixed minor memory leak in gif saving code.
fixed minor memory leak in gif saving code.

born2late/afterstep-devel,born2late/afterstep-devel,born2late/afterstep-devel,born2late/afterstep-devel,born2late/afterstep-devel