Revision: 40937
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40937&view=rev
Author:   indianlarry
Date:     2010-10-07 18:11:45 +0000 (Thu, 07 Oct 2010)

Log Message:
-----------
Set variable 'scanline' to NULL after free. If not NULL 'rt' would try and 
release a second time. Problematic when raytracing multiple frames.

Modified Paths:
--------------
    brlcad/trunk/src/rt/view.c

Modified: brlcad/trunk/src/rt/view.c
===================================================================
--- brlcad/trunk/src/rt/view.c  2010-10-07 18:02:19 UTC (rev 40936)
+++ brlcad/trunk/src/rt/view.c  2010-10-07 18:11:45 UTC (rev 40937)
@@ -572,7 +572,10 @@
        }
     }
 
-    if (scanline) free_scanlines(height, scanline);
+    if (scanline) {
+       free_scanlines(height, scanline);
+       scanline = NULL;
+    }
 }
 
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to