diff options
author | Ton Roosendaal <ton@blender.org> | 2011-01-02 16:57:06 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-01-02 16:57:06 +0300 |
commit | 7b865b5ce8053bd10a864aa7287cf8885be31d4c (patch) | |
tree | 3cba3b7256f97a89ca979169f310546068882b96 | |
parent | 118667c1bfcbac12f38435f5e143ece41bb7a4fd (diff) |
Crash fix for pointcache... bad goto's here.
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 3 |
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"); |