Ver Mensaje Individual
  #2  
Antiguo 16-12-2014
Avatar de aguml
aguml aguml is offline
Miembro
 
Registrado: may 2013
Posts: 885
Reputación: 14
aguml Va por buen camino
Se me olvidó poner la funcion donde libero toda esa memoria para que la veais y me digais si veis algo mal:
Código PHP:
void LiberarMemoria()
{
   if(
rutas != 0)
   {
      for(
int i 0nSeleccionadasi++)
         if(
rutas[i] != 0)
            
delete rutas[i];
      
delete[] rutas;
   }
   if(
rutasDivisiones != 0)
   {
      for(
int i 0nTotalDivisionesi++)
      {
         
DeleteFile(*rutasDivisiones[i]);
         if(
rutasDivisiones[i] != 0)
            
delete rutasDivisiones[i];
      }
      
delete[] rutasDivisiones;
   }
   if(
pVRLabel != 0)
   {
      for(
int i 0nSeleccionadasi++)
         if(
pVRLabel[i] != 0)
            
delete pVRLabel[i];
      
delete[] pVRLabel;
   }
   if(
pVRBand != 0)
   {
      for(
int i 0nSeleccionadasi++)
         if(
pVRBand[i] != 0)
            
delete pVRBand[i];
      
delete[] pVRBand;
   }
   if(
pVRPage != 0)
   {
      for(
int i 0nSeleccionadasi++)
         if(
pVRPage[i] != 0)
            
delete pVRPage[i];
      
delete[] pVRPage;
   }
   if(
CurrentImage != 0)
      
delete CurrentImage;

Responder Con Cita