MCPcopy Index your code
hub / github.com/MapServer/MapServer / freeLabel

Function freeLabel

mapfile.c:1658–1676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1656}
1657
1658static void freeLabel(labelObj *label)
1659{
1660 int i;
1661
1662 msFree(label->font);
1663 msFree(label->encoding);
1664
1665 for(i=0;i<label->numstyles;i++) { /* each style */
1666 if(label->styles[i]!=NULL) {
1667 if(freeStyle(label->styles[i]) == MS_SUCCESS) {
1668 msFree(label->styles[i]);
1669 }
1670 }
1671 }
1672 msFree(label->styles);
1673
1674 for(i=0; i<MS_LABEL_BINDING_LENGTH; i++)
1675 msFree(label->bindings[i].item);
1676}
1677
1678static int loadLabel(labelObj *label)
1679{

Callers 5

freeClassFunction · 0.85
resetClassStyleFunction · 0.85
freeLegendFunction · 0.85
freeScalebarFunction · 0.85
msFreeLabelCacheSlotFunction · 0.85

Calls 2

msFreeFunction · 0.85
freeStyleFunction · 0.85

Tested by

no test coverage detected