Changeset 1660


Ignore:
Timestamp:
2000-11-08T14:13:49+13:00 (23 years ago)
Author:
nzdl
Message:

Fixed bug - collectoraction destructor was deleting pointers that were
created in the init() function. If init() wasn't called for some reason
bad things were happening.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/collectoraction.cpp

    r1655 r1660  
    4646  recpt = NULL;
    4747  do_mkcol = false;
     48  gsdlosc = NULL;
     49  gsdlhomec = NULL;
    4850
    4951  cgiarginfo arg_ainfo;
     
    213215
    214216collectoraction::~collectoraction () {
    215   delete gsdlosc;
    216   delete gsdlhomec;
     217  if (gsdlosc != NULL) delete gsdlosc;
     218  if (gsdlhomec != NULL) delete gsdlhomec;
    217219}
    218220
Note: See TracChangeset for help on using the changeset viewer.