From 6dbb3e3b0c624b1e4d51e7f3034918fe58e95970 Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Thu, 22 Mar 2001 12:37:28 +0000 Subject: Last bugfixe (?) --- lib/BinHeap.cc | 2 ++ lib/CList.cc | 2 ++ lib/PCommon.cc | 3 --- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/BinHeap.cc b/lib/BinHeap.cc index bb58141..b4df068 100644 --- a/lib/BinHeap.cc +++ b/lib/BinHeap.cc @@ -1,5 +1,6 @@ #include #include +#include #include "config.h" #include "BinHeap.h" #include "CList.h" @@ -77,6 +78,7 @@ BinHeap::~BinHeap(void) { if (Datas) free(Datas); + delete FP; } Key_t BinHeap::ReadKey(Cell C) diff --git a/lib/CList.cc b/lib/CList.cc index 7e1f39a..07378db 100644 --- a/lib/CList.cc +++ b/lib/CList.cc @@ -1,4 +1,5 @@ #include +#include #include "config.h" #include "CList.h" @@ -26,6 +27,7 @@ CList::CList(CList * IPoint, Datas_t IDatas, Key_t IKey):Left(IPoint), Right(IPo CList::CList(void):Left(NULL), Right(NULL), Key(0), Datas(NULL) { } + CList::~CList(void) { if (Right) diff --git a/lib/PCommon.cc b/lib/PCommon.cc index 1ceec6a..16a8a3f 100644 --- a/lib/PCommon.cc +++ b/lib/PCommon.cc @@ -46,10 +46,7 @@ PriorityList *PriorityList::GenericUnion(PriorityList * P) Key_t IKey; Datas_t IDatas; - cerr << "Dans l'union generique\n"; - while (!(P->IsEmpty())) { - cerr << "Extraction de la clef " << IKey << endl; IKey = P->Extract_Min(IDatas); Insert(IKey, IDatas); } -- cgit v1.2.3