Revision: 76584
          http://sourceforge.net/p/brlcad/code/76584
Author:   starseeker
Date:     2020-07-29 20:24:54 +0000 (Wed, 29 Jul 2020)
Log Message:
-----------
Elimiinate duplicate alloc and free.

Modified Paths:
--------------
    brlcad/branches/bioh/src/libtclcad/tclcad_obj.c

Modified: brlcad/branches/bioh/src/libtclcad/tclcad_obj.c
===================================================================
--- brlcad/branches/bioh/src/libtclcad/tclcad_obj.c     2020-07-29 20:21:22 UTC 
(rev 76583)
+++ brlcad/branches/bioh/src/libtclcad/tclcad_obj.c     2020-07-29 20:24:54 UTC 
(rev 76584)
@@ -2902,7 +2902,6 @@
     (void)dm_close((struct dm *)gdvp->dmp);
     bu_ptbl_free(gdvp->callbacks);
     BU_PUT(gdvp->callbacks, struct bu_ptbl);
-    bu_free((void *)gdvp, "ged_view");
     to_close_fbs(gdvp);
     bu_free((void *)gdvp, "bview");
 }
@@ -4516,7 +4515,6 @@
     }
 
     BU_ALLOC(new_gdvp, struct bview);
-    BU_ALLOC(new_gdvp, struct bview);
     BU_GET(new_gdvp->callbacks, struct bu_ptbl);
     bu_ptbl_init(new_gdvp->callbacks, 8, "bview callbacks");
 

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to