diff --git a/harbour/ChangeLog b/harbour/ChangeLog index c3489fa074..8e00bc64cc 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2001-10-24 09:50 GMT+3 Alexander Kresin + ! source/rdd/dbfntx1.c + ! bug fixed in ntxZap + 2001-10-23 22:03 UTC-0500 Paul Tucker * makefile.vc * add missing $(OBJ_DIR)\hbmutils.c per diff --git a/harbour/source/rdd/dbfntx/dbfntx1.c b/harbour/source/rdd/dbfntx/dbfntx1.c index f5a75123e2..3b0e7e22f7 100644 --- a/harbour/source/rdd/dbfntx/dbfntx1.c +++ b/harbour/source/rdd/dbfntx/dbfntx1.c @@ -2382,6 +2382,9 @@ static ERRCODE ntxZap( NTXAREAP pArea ) lpIndexTmp = pArea->lpCurIndex; while( lpIndex ) { + if( lpIndex->CompoundTag->RootPage > 0 ) + hb_ntxPageFree( lpIndex->CompoundTag->RootPage,TRUE ); + lpIndex->CompoundTag->RootPage = NULL; lpIndex->CompoundTag->RootBlock = NTXBLOCKSIZE; hb_ntxHeaderSave( lpIndex );