Tracerestrict: Add button to highlight all signals using program

This commit is contained in:
Jonathan G Rennison
2022-06-11 23:29:37 +01:00
parent b37209c3af
commit 28724d651d
5 changed files with 64 additions and 0 deletions

View File

@@ -871,6 +871,11 @@ void TraceRestrictProgram::DecrementRefCount(TraceRestrictRefId ref_id) {
free(ptr);
}
if (this->refcount == 0) {
extern const TraceRestrictProgram *_viewport_highlight_tracerestrict_program;
if (_viewport_highlight_tracerestrict_program == this) {
_viewport_highlight_tracerestrict_program = nullptr;
InvalidateWindowClassesData(WC_TRACE_RESTRICT);
}
delete this;
}
}