changeset 988:0a917f3397b2

*** empty log message ***
author david <david>
date Wed, 14 Feb 1996 16:03:34 +0000
parents d61f934c57e1
children 1b6121baee84
files volume_io/Volumes/input_mnc.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/volume_io/Volumes/input_mnc.c
+++ b/volume_io/Volumes/input_mnc.c
@@ -16,7 +16,7 @@
 #include  <minc.h>
 
 #ifndef lint
-static char rcsid[] = "$Header: /private-cvsroot/minc/volume_io/Volumes/input_mnc.c,v 1.50 1995-11-17 20:25:40 david Exp $";
+static char rcsid[] = "$Header: /private-cvsroot/minc/volume_io/Volumes/input_mnc.c,v 1.51 1996-02-14 16:03:34 david Exp $";
 #endif
 
 #define  INVALID_AXIS   -1
@@ -579,7 +579,7 @@
     if( prev_nc_type != converted_type )
         different = TRUE;
 
-    if( different && volume_is_alloced( volume ) )
+    if( different && volume_is_alloced( volume ) && !volume_is_cached(volume) )
         free_volume_data( volume );
 
     return( file );