Revision: 54874
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54874&view=rev
Author:   n_reed
Date:     2013-03-26 14:13:20 +0000 (Tue, 26 Mar 2013)
Log Message:
-----------
fix leaked path memory in ged_redraw

Modified Paths:
--------------
    brlcad/trunk/src/libged/draw.c

Modified: brlcad/trunk/src/libged/draw.c
===================================================================
--- brlcad/trunk/src/libged/draw.c      2013-03-26 13:53:29 UTC (rev 54873)
+++ brlcad/trunk/src/libged/draw.c      2013-03-26 14:13:20 UTC (rev 54874)
@@ -1805,6 +1805,8 @@
                /* this display list path matches/contains the redraw path */
                if (db_full_path_match_top(&dl_path, &obj_path)) {
                    found_path = 1;
+                   db_free_full_path(&dl_path);
+
                    for (BU_LIST_FOR(sp, solid, &gdlp->gdl_headSolid)) {
                        ret = redraw_solid(gedp, sp);
                        if (ret < 0) {
@@ -1815,9 +1817,9 @@
                    }
                    break;
                }
+               db_free_full_path(&dl_path);
            }
 
-           db_free_full_path(&dl_path);
            db_free_full_path(&obj_path);
 
            if (!found_path) {
@@ -1825,7 +1827,6 @@
                        "%s: %s is not being displayed\n", argv[0], argv[i]);
                return GED_ERROR;
            }
-
        }
     }
 

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


------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to