Commit 944386f6 authored by Kenneth Vanhoey's avatar Kenneth Vanhoey

correction fuite mémoire (oublis dans le destructeur)

parent 8d0fb6f4
......@@ -70,7 +70,7 @@ public: // methods
/**
* Destructor
*/
~ColourConverter() {} ;
~ColourConverter() ;
/**
* getR
......
......@@ -61,6 +61,15 @@ ColourConverter<REAL>::ColourConverter(VEC3 col, enum ColourEncoding enc) :
}
}
template<typename REAL>
ColourConverter<REAL>::~ColourConverter()
{
delete RGB ;
delete Luv ;
delete XYZ ;
delete Lab ;
}
template<typename REAL>
Geom::Vector<3,REAL> ColourConverter<REAL>::getColour(enum ColourEncoding enc) {
switch (enc) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment