Ignore:
Timestamp:
08/06/12 15:34:22 (13 years ago)
Author:
jschierm
Message:

Implementation of xNew and xDelete in KML classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/objects/KML/KML_Style.cpp

    r12835 r12915  
    3838        if (list) {
    3939//              delete list;
    40                 if (list      ) xfree((void**)&list);
    4140                list      =NULL;
    4241        }
    4342        if (balloon) {
    4443//              delete balloon;
    45                 if (balloon   ) xfree((void**)&balloon);
    4644                balloon   =NULL;
    4745        }
     
    5654        if (label) {
    5755//              delete label;
    58                 if (label     ) xfree((void**)&label);
    5956                label     =NULL;
    6057        }
    6158        if (icon) {
    6259//              delete icon;
    63                 if (icon      ) xfree((void**)&icon);
    6460                icon      =NULL;
    6561        }
     
    189185                                                          &ncom,&pcom)) {
    190186                if      (!strncmp(kstri,"</Style", 7)) {
    191                         xfree((void**)&kstri);
     187                        xDelete<char>(kstri);
    192188                        break;
    193189                }
     
    230226                        KML_StyleSelector::Read(fid,kstri);
    231227
    232                 xfree((void**)&kstri);
     228                xDelete<char>(kstri);
    233229        }
    234230
     
    236232
    237233        for (ncom; ncom>0; ncom--)
    238                 xfree((void**)&(pcom[ncom-1]));
    239         xfree((void**)&pcom);
    240 
    241         return;
    242 }
    243 /*}}}*/
     234                xDelete<char>(pcom[ncom-1]);
     235        xDelete<char*>(pcom);
     236
     237        return;
     238}
     239/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.