Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-01-15 14:01:41 +0300
committerTon Roosendaal <ton@blender.org>2007-01-15 14:01:41 +0300
commit2170b007f0782b13aa6a6ad26f00f31231d5e01c (patch)
tree4dbec9ff2c36624b1fce6f66f517bb74c7b36ef1 /source/blender/src/edittime.c
parenta77178467bf2a30684efa72910139254fdf7fcc6 (diff)
Bugfix #5700
Deleting a marker could crash, it was reading memory right after it was freed.
Diffstat (limited to 'source/blender/src/edittime.c')
-rw-r--r--source/blender/src/edittime.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/src/edittime.c b/source/blender/src/edittime.c
index 7725131edea..52e16a279ab 100644
--- a/source/blender/src/edittime.c
+++ b/source/blender/src/edittime.c
@@ -106,9 +106,10 @@ void add_marker(int frame)
/* remove selected TimeMarkers */
void remove_marker(void)
{
- TimeMarker *marker;
+ TimeMarker *marker, *nmarker;
- for(marker= G.scene->markers.first; marker; marker= marker->next) {
+ for(marker= G.scene->markers.first; marker; marker= nmarker) {
+ nmarker= marker->next;
if(marker->flag & SELECT){
BLI_freelinkN(&(G.scene->markers), marker);
}