567{
568 if (psDBF == NULL)
569 return;
570
571
572
573
574 if (psDBF->bNoHeader)
576
578
579
580
581
582
583 if (psDBF->bUpdated)
585
586
587
588
589 psDBF->sHooks.FClose(psDBF->fp);
590
591 if (psDBF->panFieldOffset != NULL)
592 {
593 free(psDBF->panFieldOffset);
594 free(psDBF->panFieldSize);
595 free(psDBF->panFieldDecimals);
596 free(psDBF->pachFieldType);
597 }
598
599 if (psDBF->pszWorkField != NULL)
600 free(psDBF->pszWorkField);
601
602 free(psDBF->pszHeader);
603 free(psDBF->pszCurrentRecord);
604 free(psDBF->pszCodePage);
605
607}
static void DBFWriteHeader(DBFHandle psDBF)
static int DBFFlushRecord(DBFHandle psDBF)
void SHPAPI_CALL DBFUpdateHeader(DBFHandle psDBF)