Skip to content

Commit a4bf08e

Browse files
committed
Fix correctness of patch compare function (fixes potential crash when closing nested abstractions)
1 parent 2f12ed3 commit a4bf08e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Pd/Patch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Patch final : public ReferenceCountedObject {
2929
// The compare equal operator.
3030
bool operator==(Patch const& other) const
3131
{
32-
return getRawPointer() == other.getRawPointer();
32+
return getUncheckedPointer() == other.getUncheckedPointer() && ptr.isDeleted() == other.ptr.isDeleted();
3333
}
3434

3535
// Gets the bounds of the patch.

0 commit comments

Comments
 (0)