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:
parent
1ada44ab8e
commit
a21b209436
@ -3863,7 +3863,11 @@ EraseLogUpdCl(LogUpdClause *clau)
|
|||||||
DBErasedList = clau;
|
DBErasedList = clau;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
/* we are holding a reference to the clause */
|
||||||
|
clau->ClRefCount++;
|
||||||
Yap_RemoveClauseFromIndex(clau->ClPred, clau->ClCode);
|
Yap_RemoveClauseFromIndex(clau->ClPred, clau->ClCode);
|
||||||
|
/* release the extra reference */
|
||||||
|
clau->ClRefCount--;
|
||||||
}
|
}
|
||||||
complete_lu_erase(clau);
|
complete_lu_erase(clau);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user