00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "BonCouenneSetup.hpp"
00016
00017 #ifdef COIN_HAS_ASL
00018 #include "asl.h"
00019 #include "getstub.h"
00020 #endif
00021
00022 using namespace Couenne;
00023
00024 SmartAsl::~SmartAsl(){
00025 #ifdef COIN_HAS_ASL
00026
00027 if(asl != NULL){
00028 if (X0) {
00029 delete [] X0;
00030 X0 = NULL;
00031 }
00032 if (havex0) {
00033 delete [] havex0;
00034 havex0 = NULL;
00035 }
00036 if (pi0) {
00037 delete [] pi0;
00038 pi0 = NULL;
00039 }
00040 if (havepi0) {
00041 delete [] havepi0;
00042 havepi0 = NULL;
00043 }
00044 ASL* asl_to_free = (ASL*)asl;
00045 ASL_free(&asl_to_free);
00046 asl = NULL;
00047 }
00048 ASL_free(&asl);
00049 #endif
00050 }
00051