Changes in / [541:89e29e22d479:542:fc6c7aab4b8d] in lemon-main
Legend:
- Unmodified
- Added
- Removed
-
lemon/glpk.cc
r540 r542 522 522 cols.clear(); 523 523 } 524 525 void GlpkBase::freeEnv() { 526 glp_free_env(); 527 } 528 529 GlpkBase::FreeEnvHelper GlpkBase::freeEnvHelper; 524 530 525 531 // GlpkLp members -
lemon/glpk.h
r541 r542 101 101 virtual void _clear(); 102 102 103 private: 104 105 static void freeEnv(); 106 107 struct FreeEnvHelper { 108 ~FreeEnvHelper() { 109 freeEnv(); 110 } 111 }; 112 113 static FreeEnvHelper freeEnvHelper; 114 103 115 public: 104 116
Note: See TracChangeset
for help on using the changeset viewer.