Memoery leak fixed (figure hanlder)