Corrected illegal memory access bug after freeing hovered annotation item
This commit is contained in:
@@ -90,6 +90,7 @@ void ByteItemGraphicsScene::refreshRegions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Refresh annotation items
|
// Refresh annotation items
|
||||||
|
this->hoveredAnnotationItem = std::nullopt;
|
||||||
for (auto* annotationItem : this->annotationItems) {
|
for (auto* annotationItem : this->annotationItems) {
|
||||||
this->removeItem(annotationItem);
|
this->removeItem(annotationItem);
|
||||||
delete annotationItem;
|
delete annotationItem;
|
||||||
|
|||||||
Reference in New Issue
Block a user