- Timestamp:
- 2000-08-28T10:27:20+12:00 (24 years ago)
- Location:
- trunk/gsdl/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/collectserver.cpp
r1318 r1459 36 36 37 37 collectserver::~collectserver () { 38 39 // clean up the sources 40 sourcelistclass::iterator source_here = sources.begin(); 41 sourcelistclass::iterator source_end = sources.end(); 42 while (source_here != source_end) { 43 if ((*source_here).s != NULL) 44 delete (*source_here).s; 45 source_here++; 46 } 47 sources.clear(); 48 49 // clean up the filters 50 filtermapclass::iterator filter_here = filters.begin(); 51 filtermapclass::iterator filter_end = filters.end(); 52 while (filter_here != filter_end) { 53 if ((*filter_here).second.f != NULL) 54 delete (*filter_here).second.f; 55 filter_here++; 56 } 57 filters.clear(); 38 58 } 39 59 -
trunk/gsdl/src/colservr/mggdbmsource.cpp
r1285 r1459 36 36 37 37 mggdbmsourceclass::~mggdbmsourceclass () { 38 if (gdbmptr != NULL) delete gdbmptr; 39 if (mgsearchptr != NULL) delete mgsearchptr; 38 40 } 39 41 -
trunk/gsdl/src/colservr/queryfilter.cpp
r1324 r1459 292 292 293 293 queryfilterclass::~queryfilterclass () { 294 // don't delete gdbmptr or mgsearchptr here, they'll 295 // be cleaned up by mggdbmsource 294 296 } 295 297 -
trunk/gsdl/src/recpt/infodbclass.cpp
r1285 r1459 102 102 103 103 104 104 gdbmclass::~gdbmclass() { 105 closedatabase(); 106 } 105 107 106 108 // returns true if opened -
trunk/gsdl/src/recpt/infodbclass.h
r1285 r1459 130 130 public: 131 131 gdbmclass() {gdbmfile = NULL; logout = &cerr;}; 132 ~gdbmclass() {};132 ~gdbmclass(); 133 133 134 134 // returns true if opened -
trunk/gsdl/src/recpt/librarymain.cpp
r1429 r1459 117 117 #endif 118 118 119 // this memory is created but never destroyed120 // we're also not doing any error checking to make sure we didn't121 // run out of memory122 119 collectserver *cserver = new collectserver(); 123 120 gdbmclass *gdbmhandler = new gdbmclass(); -
trunk/gsdl/src/recpt/nullproto.cpp
r1308 r1459 28 28 #include <assert.h> 29 29 30 nullproto::~nullproto() { 31 collectservermapclass::iterator here = cservers.begin(); 32 collectservermapclass::iterator end = cservers.end(); 33 34 while (here != end) { 35 if ((*here).second.c != NULL) { 36 delete (*here).second.c; 37 } 38 here ++; 39 } 40 cservers.clear(); 41 } 30 42 31 43 // this configure will configure each of the collection servers -
trunk/gsdl/src/recpt/nullproto.h
r1285 r1459 37 37 collectservermapclass cservers; 38 38 public: 39 virtual ~nullproto() {}39 virtual ~nullproto(); 40 40 41 41 // add_collectserver should be called for each collection server
Note:
See TracChangeset
for help on using the changeset viewer.