Changeset 3315


Ignore:
Timestamp:
03/22/10 11:36:09 (15 years ago)
Author:
Mathieu Morlighem
Message:

minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Bamgx/objects/Triangles.cpp

    r3312 r3315  
    670670                if(verbose>5) printf("      writing element edges\n");
    671671                SetOfEdges4* edge4=new SetOfEdges4(nbt*3,nbv);
    672                 double* elemedge=new double[3*nbt];
     672                double* elemedge=NULL;
     673                elemedge=(double*)xmalloc(3*nbt*sizeof(double));
    673674                for (i=0;i<3*nbt;i++) elemedge[i]=NAN;
    674675                k=0;
     
    704705                //clean up
    705706                delete edge4;
    706                 delete elemedge;
     707                xfree((void**)&elemedge);
    707708
    708709                //Segments
Note: See TracChangeset for help on using the changeset viewer.