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

Function strcodeDestroy

deps/leptonica/src/stringcode.c:181–202  ·  view source on GitHub ↗

! * \brief strcodeDestroy() * * \param[out] pstrcode &strcode is set to null after destroying the sarrays * \return void */

Source from the content-addressed store, hash-verified

179 * \return void
180 */
181static void
182strcodeDestroy(L_STRCODE **pstrcode)
183{
184L_STRCODE *strcode;
185
186 PROCNAME("strcodeDestroy");
187
188 if (pstrcode == NULL) {
189 L_WARNING("ptr address is null!\n", procName);
190 return;
191 }
192
193 if ((strcode = *pstrcode) == NULL)
194 return;
195
196 sarrayDestroy(&strcode->function);
197 sarrayDestroy(&strcode->data);
198 sarrayDestroy(&strcode->descr);
199 LEPT_FREE(strcode);
200 *pstrcode = NULL;
201 return;
202}
203
204
205/*!

Callers 1

strcodeFinalizeFunction · 0.85

Calls 1

sarrayDestroyFunction · 0.85

Tested by

no test coverage detected