mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-30 22:34:15 +01:00
gl_query_cache: Resolve use-after-move in CachedQuery move assignment operator
Avoids potential invalid junk data from being read.
This commit is contained in:
parent
e33196d4e7
commit
3a60f19eaf
@ -94,9 +94,9 @@ CachedQuery::CachedQuery(CachedQuery&& rhs) noexcept
|
|||||||
: VideoCommon::CachedQueryBase<HostCounter>(std::move(rhs)), cache{rhs.cache}, type{rhs.type} {}
|
: VideoCommon::CachedQueryBase<HostCounter>(std::move(rhs)), cache{rhs.cache}, type{rhs.type} {}
|
||||||
|
|
||||||
CachedQuery& CachedQuery::operator=(CachedQuery&& rhs) noexcept {
|
CachedQuery& CachedQuery::operator=(CachedQuery&& rhs) noexcept {
|
||||||
VideoCommon::CachedQueryBase<HostCounter>::operator=(std::move(rhs));
|
|
||||||
cache = rhs.cache;
|
cache = rhs.cache;
|
||||||
type = rhs.type;
|
type = rhs.type;
|
||||||
|
CachedQueryBase<HostCounter>::operator=(std::move(rhs));
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user