Changeset 585:ba124394367a in lemon
- Timestamp:
- 02/23/09 23:44:29 (16 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/glpk.cc
r584 r585 526 526 glp_free_env(); 527 527 } 528 529 GlpkBase::FreeEnvHelper GlpkBase::freeEnvHelper; 528 530 529 531 // GlpkLp members -
lemon/glpk.h
r584 r585 101 101 virtual void _clear(); 102 102 103 public: 104 105 /// \brief Deallocates the globally allocated memory of GLPK. 106 107 /// Deallocates the globally allocated memory of GLPK. \note 108 /// Usually, it do not have to be called, because the GLPK use 109 /// only a small amount of global memory, and it is deallocated 110 /// automatically at the end of program. 103 private: 104 111 105 static void freeEnv(); 106 107 struct FreeEnvHelper { 108 ~FreeEnvHelper() { 109 freeEnv(); 110 } 111 }; 112 113 static FreeEnvHelper freeEnvHelper; 114 115 public: 112 116 113 117 ///Pointer to the underlying GLPK data structure. -
test/lp_test.cc
r584 r585 367 367 aTest(lp_glpk2); 368 368 } 369 GlpkLp::freeEnv();370 369 #endif 371 370 -
test/mip_test.cc
r584 r585 116 116 aTest(mip1); 117 117 } 118 GlpkLp::freeEnv();119 118 #endif 120 119
Note: See TracChangeset
for help on using the changeset viewer.