Revision: 47761
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47761
Author:   campbellbarton
Date:     2012-06-11 20:58:16 +0000 (Mon, 11 Jun 2012)
Log Message:
-----------
fix for using freed memory with mask point slide
-- This line, and those below, will be ignored--

M    source/blender/editors/mask/mask_ops.c

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mask/mask_ops.c

Modified: trunk/blender/source/blender/editors/mask/mask_ops.c
===================================================================
--- trunk/blender/source/blender/editors/mask/mask_ops.c        2012-06-11 
20:50:57 UTC (rev 47760)
+++ trunk/blender/source/blender/editors/mask/mask_ops.c        2012-06-11 
20:58:16 UTC (rev 47761)
@@ -758,11 +758,10 @@
                                        }
                                }
 
-                               free_slide_point_data(op->customdata);
-
                                WM_event_add_notifier(C, NC_MASK | NA_EDITED, 
data->mask);
                                DAG_id_tag_update(&data->mask->id, 0);
 
+                               free_slide_point_data(op->customdata); /* keep 
this last! */
                                return OPERATOR_FINISHED;
                        }
 
@@ -771,11 +770,10 @@
                case ESCKEY:
                        cancel_slide_point(op->customdata);
 
-                       free_slide_point_data(op->customdata);
-
                        WM_event_add_notifier(C, NC_MASK | NA_EDITED, 
data->mask);
                        DAG_id_tag_update(&data->mask->id, 0);
 
+                       free_slide_point_data(op->customdata); /* keep this 
last! */
                        return OPERATOR_CANCELLED;
        }
 

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

Reply via email to