POV-Ray : Newsgroups : povray.unofficial.patches : Memory leak in eval_pattern() and eval_pigment()! Server Time
2 Sep 2024 08:12:57 EDT (-0400)
  Memory leak in eval_pattern() and eval_pigment()! (Message 1 to 1 of 1)  
From: Chris Huff
Subject: Memory leak in eval_pattern() and eval_pigment()!
Date: 21 Apr 2000 12:39:18
Message: <chrishuff_99-B23B6E.11421021042000@news.povray.org>
I just discovered a memory leak while working on the vwarp() patch: I 
forgot to add code which deletes the pattern variable for 
eval_pattern()...the internal parts are cleaned up, but the structure 
itself remains after the function returns.(oops!)
Just add
    POV_FREE(New);
after the call to Destroy_TPat_Fields() in Parse_eval_pat().

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.