Revision: 21014
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21014
Author:   yukishiro
Date:     2009-06-19 18:43:35 +0200 (Fri, 19 Jun 2009)

Log Message:
-----------
free data properly when exiting

Modified Paths:
--------------
    
branches/soc-2009-yukishiro/source/blender/editors/sculpt_paint/paint_light.c
    
branches/soc-2009-yukishiro/source/blender/editors/space_view3d/space_view3d.c

Modified: 
branches/soc-2009-yukishiro/source/blender/editors/sculpt_paint/paint_light.c
===================================================================
--- 
branches/soc-2009-yukishiro/source/blender/editors/sculpt_paint/paint_light.c   
    2009-06-19 16:27:01 UTC (rev 21013)
+++ 
branches/soc-2009-yukishiro/source/blender/editors/sculpt_paint/paint_light.c   
    2009-06-19 16:43:35 UTC (rev 21014)
@@ -256,6 +256,16 @@
 
 void undo_lightpaint_clear(void)
 {
+        PaintStroke *ps, *next;
+
+        ps = strokes.first;
+        while (ps) {
+                MEM_freeN(ps->v_index);
+                next = ps->next;
+                MEM_freeN(ps);
+                ps = next;
+        }
+
         BLI_freelistN(&undo_coeffs);
         BLI_freelistN(&redo_coeffs);
 }

Modified: 
branches/soc-2009-yukishiro/source/blender/editors/space_view3d/space_view3d.c
===================================================================
--- 
branches/soc-2009-yukishiro/source/blender/editors/space_view3d/space_view3d.c  
    2009-06-19 16:27:01 UTC (rev 21013)
+++ 
branches/soc-2009-yukishiro/source/blender/editors/space_view3d/space_view3d.c  
    2009-06-19 16:43:35 UTC (rev 21014)
@@ -408,7 +408,8 @@
                        switch(wmn->data) {
                                case ND_SHADING_DRAW:
                                         rv3d = ar->regiondata;
-                                        rv3d->rflag &= RV3D_RECALCMCOL;
+                                       rv3d->rflag |= RV3D_SHRESULT;
+                                       rv3d->rflag |= RV3D_RECALCMCOL;
                                        ED_region_tag_redraw(ar);
                                        break;
                        }


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to