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>2011-01-02 16:57:06 +0300
committerTon Roosendaal <ton@blender.org>2011-01-02 16:57:06 +0300
commit7b865b5ce8053bd10a864aa7287cf8885be31d4c (patch)
tree3cba3b7256f97a89ca979169f310546068882b96 /source/blender/blenkernel/intern/pointcache.c
parent118667c1bfcbac12f38435f5e143ece41bb7a4fd (diff)
Crash fix for pointcache... bad goto's here.
Diffstat (limited to 'source/blender/blenkernel/intern/pointcache.c')
-rw-r--r--source/blender/blenkernel/intern/pointcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c
index 24edead4751..2285d79c165 100644
--- a/source/blender/blenkernel/intern/pointcache.c
+++ b/source/blender/blenkernel/intern/pointcache.c
@@ -1793,7 +1793,8 @@ static int ptcache_write_stream(PTCacheID *pid, int cfra, int totpoint)
ret = 1;
cleanup:
- ptcache_file_close(pf);
+ if(pf)
+ ptcache_file_close(pf);
if (ret == 0 && G.f & G_DEBUG)
printf("Error writing to disk cache\n");