File tree 1 file changed +20
-7
lines changed
1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -849,14 +849,27 @@ void MR_3D::free ()
849
849
Border = DEFAULT_BORDER_3D;
850
850
switch (Set_Transform)
851
851
{
852
- case TRANS3_MALLAT:
853
- Data.free ();
852
+ case TRANS3_MALLAT:
853
+ Data.free ();
854
854
break ;
855
- case TRANS3_PAVE:
856
- AT3D_WT.free (TabBand, Nbr_Plan);
857
- break ;
858
- default : cerr << " Error: bad transform ... " << endl;
859
- exit (-1 );
855
+ case TRANS3_PAVE:
856
+ AT3D_WT.free (TabBand, Nbr_Plan);
857
+ break ;
858
+ case S3_UNDEFINED:
859
+ // We set those attrributes to NULL because these should be instantiated
860
+ // in the init().
861
+ TabPosX = NULL ;
862
+ TabSizeNx = NULL ;
863
+ TabPosY = NULL ;
864
+ TabSizeNy = NULL ;
865
+ TabPosZ = NULL ;
866
+ TabSizeNz = NULL ;
867
+ FilterBank = NULL ;
868
+ break ;
869
+
870
+ default : cerr << " Error: bad transform ... " << endl;
871
+ exit (-1 );
872
+
860
873
}
861
874
Nbr_Plan = 0 ;
862
875
Nbr_Band = 0 ;
You can’t perform that action at this time.
0 commit comments