don't allow removeindex to remove own clause.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@923 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc 2003-11-12 13:31:28 +00:00
parent 1ada44ab8e
commit a21b209436

View File

@ -3863,7 +3863,11 @@ EraseLogUpdCl(LogUpdClause *clau)
DBErasedList = clau;
}
#endif
/* we are holding a reference to the clause */
clau->ClRefCount++;
Yap_RemoveClauseFromIndex(clau->ClPred, clau->ClCode);
/* release the extra reference */
clau->ClRefCount--;
}
complete_lu_erase(clau);
}