Revision: 41471
http://brlcad.svn.sourceforge.net/brlcad/?rev=41471&view=rev
Author: erikgreenwald
Date: 2010-11-29 19:49:02 +0000 (Mon, 29 Nov 2010)
Log Message:
-----------
set freed memory ptr to NULL
Modified Paths:
--------------
brlcad/branches/bottie/src/librt/primitives/bot/bot.c
Modified: brlcad/branches/bottie/src/librt/primitives/bot/bot.c
===================================================================
--- brlcad/branches/bottie/src/librt/primitives/bot/bot.c 2010-11-29
19:47:28 UTC (rev 41470)
+++ brlcad/branches/bottie/src/librt/primitives/bot/bot.c 2010-11-29
19:49:02 UTC (rev 41471)
@@ -424,9 +424,10 @@
register struct bot_specific *bot =
(struct bot_specific *)stp->st_specific;
- if (bot->tie != NULL)
+ if (bot->tie != NULL) {
bottie_free_double(bot->tie);
- if (bot->bot_flags & RT_BOT_USE_FLOATS) {
+ bot->tie = NULL;
+ } if (bot->bot_flags & RT_BOT_USE_FLOATS) {
rt_bot_free_float(bot);
} else {
rt_bot_free_double(bot);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits