Declare ~UI_GADGET as protected
UI_GADGET subclasses should always be deleted through the subtype pointer.
This commit is contained in:
parent
df8dc7cc46
commit
37ec5e25d4
|
@ -81,6 +81,8 @@ struct UI_GADGET
|
||||||
int status; \
|
int status; \
|
||||||
int oldstatus; \
|
int oldstatus; \
|
||||||
grs_subcanvas_ptr canvas; \
|
grs_subcanvas_ptr canvas; \
|
||||||
|
protected:
|
||||||
|
~UI_GADGET() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct UI_GADGET_USERBOX : UI_GADGET
|
struct UI_GADGET_USERBOX : UI_GADGET
|
||||||
|
|
Loading…
Reference in a new issue