Fix memory leak when using scroll-bars
This commit is contained in:
@@ -844,8 +844,8 @@ static int actionzone_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
AZone *az = ED_area_actionzone_find_xy(sa, &event->x);
|
||||
sActionzoneData *sad;
|
||||
|
||||
/* quick escape */
|
||||
if (az == NULL)
|
||||
/* quick escape - Scroll azones only hide/unhide the scroll-bars, they have their own handling. */
|
||||
if (az == NULL || ELEM(az->type, AZONE_REGION_SCROLL))
|
||||
return OPERATOR_PASS_THROUGH;
|
||||
|
||||
/* ok we do the actionzone */
|
||||
@@ -860,9 +860,6 @@ static int actionzone_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
actionzone_exit(op);
|
||||
return OPERATOR_FINISHED;
|
||||
}
|
||||
else if (ELEM(sad->az->type, AZONE_REGION_SCROLL)) {
|
||||
return OPERATOR_PASS_THROUGH;
|
||||
}
|
||||
else {
|
||||
/* add modal handler */
|
||||
WM_event_add_modal_handler(C, op);
|
||||
|
||||
Reference in New Issue
Block a user