[brlcad-commits] SF.net SVN: brlcad:[55151] brlcad/trunk/include/raytrace.h
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <br...@us...> - 2013-04-12 21:35:58
|
Revision: 55151 http://brlcad.svn.sourceforge.net/brlcad/?rev=55151&view=rev Author: brlcad Date: 2013-04-12 21:35:51 +0000 (Fri, 12 Apr 2013) Log Message: ----------- wipe out the magic number for good measure since this is no longer a valid usable tree pointer after we give it back. Modified Paths: -------------- brlcad/trunk/include/raytrace.h Modified: brlcad/trunk/include/raytrace.h =================================================================== --- brlcad/trunk/include/raytrace.h 2013-04-12 21:35:06 UTC (rev 55150) +++ brlcad/trunk/include/raytrace.h 2013-04-12 21:35:51 UTC (rev 55151) @@ -1270,6 +1270,7 @@ * DEPRECATED, use BU_PUT() */ #define RT_FREE_TREE(_tp, _res) { \ + (_tp)->magic = 0; \ (_tp)->tr_b.tb_left = (_res)->re_tree_hd; \ (_tp)->tr_b.tb_right = TREE_NULL; \ (_res)->re_tree_hd = (_tp); \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |