Revision: 54537
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54537&view=rev
Author:   brlcad
Date:     2013-03-06 20:47:45 +0000 (Wed, 06 Mar 2013)
Log Message:
-----------
examples should do what the api docs say, if we call BU_GET() then we should 
call BU_PUT() ... not bu_free().

Modified Paths:
--------------
    brlcad/trunk/include/bu.h

Modified: brlcad/trunk/include/bu.h
===================================================================
--- brlcad/trunk/include/bu.h   2013-03-06 19:54:55 UTC (rev 54536)
+++ brlcad/trunk/include/bu.h   2013-03-06 20:47:45 UTC (rev 54537)
@@ -783,9 +783,9 @@
  while (BU_LIST_WHILE(entry, my_structure, &(my_list->l))) {
    bu_log("Entry value is %d\n", entry->my_data);
    BU_LIST_DEQUEUE(&(entry->l));
-   bu_free(entry, "free my_structure entry");
+   BU_PUT(entry, struct my_structure);
  }
- bu_free(my_list, "free my_structure list head");
+ BU_PUT(my_list, struct my_structure);
 
  --- END EXAMPLE ---
  @endcode

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


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to