MCPcopy Create free account
hub / github.com/creatale/node-dv / gplotDestroy

Function gplotDestroy

deps/leptonica/src/gplot.c:196–229  ·  view source on GitHub ↗

! * \brief gplotDestroy() * * \param[in,out] pgplot to be nulled */

Source from the content-addressed store, hash-verified

194 * \param[in,out] pgplot to be nulled
195 */
196void
197gplotDestroy(GPLOT **pgplot)
198{
199GPLOT *gplot;
200
201 PROCNAME("gplotDestroy");
202
203 if (pgplot == NULL) {
204 L_WARNING("ptr address is null!\n", procName);
205 return;
206 }
207
208 if ((gplot = *pgplot) == NULL)
209 return;
210
211 LEPT_FREE(gplot->rootname);
212 LEPT_FREE(gplot->cmdname);
213 sarrayDestroy(&gplot->cmddata);
214 sarrayDestroy(&gplot->datanames);
215 sarrayDestroy(&gplot->plotdata);
216 sarrayDestroy(&gplot->plottitles);
217 numaDestroy(&gplot->plotstyles);
218 LEPT_FREE(gplot->outname);
219 if (gplot->title)
220 LEPT_FREE(gplot->title);
221 if (gplot->xlabel)
222 LEPT_FREE(gplot->xlabel);
223 if (gplot->ylabel)
224 LEPT_FREE(gplot->ylabel);
225
226 LEPT_FREE(gplot);
227 *pgplot = NULL;
228 return;
229}
230
231
232/*!

Callers 15

boxaPlotSidesFunction · 0.85
boxaPlotSizesFunction · 0.85
pixWordMaskByDilationFunction · 0.85
pixItalicWordsFunction · 0.85
pixCompareGrayFunction · 0.85
pixCompareRGBFunction · 0.85
gplotSimpleXY1Function · 0.85
gplotSimpleXY2Function · 0.85
gplotSimpleXYNFunction · 0.85
pixFindSkewSweepFunction · 0.85

Calls 2

sarrayDestroyFunction · 0.85
numaDestroyFunction · 0.85

Tested by

no test coverage detected