mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1176096 - Ensure we don't do self-moves in move assignment (r=bent)
This commit is contained in:
parent
3fd5dd5090
commit
2e6ec629ef
@ -161,7 +161,7 @@ public:
|
||||
|
||||
InterruptFrame& operator=(InterruptFrame&& aOther)
|
||||
{
|
||||
MOZ_ASSERT(&aOther != this);
|
||||
MOZ_RELEASE_ASSERT(&aOther != this);
|
||||
this->~InterruptFrame();
|
||||
new (this) InterruptFrame(mozilla::Move(aOther));
|
||||
return *this;
|
||||
|
Loading…
Reference in New Issue
Block a user