take care of ref before deleting singlepoly in polynoms 18/16618/1
Antoine ELIAS [Tue, 9 Jun 2015 11:27:28 +0000 (13:27 +0200)]
Change-Id: I4f8cee1106f297067d66f4dc91baa59496408c83

scilab/modules/ast/src/cpp/types/polynom.cpp

index 05213dc..5b308fd 100644 (file)
@@ -951,7 +951,7 @@ void Polynom::deleteAll()
 {
     for (int i = 0 ; i < m_iSizeMax ; i++)
     {
-        delete m_pRealData[i];
+        m_pRealData[i]->killMe();
     }
     delete[] m_pRealData;
     m_pRealData = NULL;