Changeset 547


Ignore:
Timestamp:
Mar 6, 2006, 3:48:45 PM (16 years ago)
Author:
Peter
Message:

deleting dynamically allocated kernels in SVM destructor

Location:
trunk/lib/classifier
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/SVM.cc

    r545 r547  
    7373
    7474 
     75
     76  SVM::~SVM()
     77  {
     78    if (owner_)
     79      delete kernel_;
     80  }
     81
    7582
    7683  SupervisedClassifier* SVM::make_classifier(const DataLookup2D& data,
  • trunk/lib/classifier/SVM.h

    r545 r547  
    122122    SVM(const KernelLookup& kernel, const Target& target,
    123123        statistics::Score&, const size_t);
     124
     125    ///
     126    /// Destructor
     127    ///
     128    virtual ~SVM();
    124129
    125130    ///
Note: See TracChangeset for help on using the changeset viewer.