MCPcopy Create free account
hub / github.com/audacity/audacity / zipfileClose

Function zipfileClose

lib-src/sqlite/shell.c:6343–6355  ·  view source on GitHub ↗

** Destructor for an ZipfileCsr. */

Source from the content-addressed store, hash-verified

6341** Destructor for an ZipfileCsr.
6342*/
6343static int zipfileClose(sqlite3_vtab_cursor *cur){
6344 ZipfileCsr *pCsr = (ZipfileCsr*)cur;
6345 ZipfileTab *pTab = (ZipfileTab*)(pCsr->base.pVtab);
6346 ZipfileCsr **pp;
6347 zipfileResetCursor(pCsr);
6348
6349 /* Remove this cursor from the ZipfileTab.pCsrList list. */
6350 for(pp=&pTab->pCsrList; *pp!=pCsr; pp=&((*pp)->pCsrNext));
6351 *pp = pCsr->pCsrNext;
6352
6353 sqlite3_free(pCsr);
6354 return SQLITE_OK;
6355}
6356
6357/*
6358** Set the error message for the virtual table associated with cursor

Callers

nothing calls this directly

Calls 1

zipfileResetCursorFunction · 0.85

Tested by

no test coverage detected