** Destructor for an ZipfileCsr. */
| 6341 | ** Destructor for an ZipfileCsr. |
| 6342 | */ |
| 6343 | static 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 |
nothing calls this directly
no test coverage detected