Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion DarkEdif/Inc/Android/MMFAndroidMasterHeader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ struct global {
newO2.monitor = this->monitor;
return std::move(newO2);
}
global<T> newO(this->ref, this->name);
global<T> newO;
newO.ref = this->ref;
newO.monitor = this->monitor;
this->ref = nullptr;
this->name = "unset [swapped out]";
Expand All @@ -248,6 +249,9 @@ struct global {
LOGE("Invalid global ref at %p \"%s\" was moved!\n", this, name);
raise(SIGTRAP);
}
if (this->ref) {
threadEnv->DeleteGlobalRef(this->ref);
}
this->ref = p.ref;
this->name = p.name;
this->monitor = p.monitor;
Expand Down