diff options
-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"); |