diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-09 10:00:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-09 10:00:33 +0400 |
commit | 9b5a2084bc1ca8f330faeb601d2b3c65efa98f3d (patch) | |
tree | 5047c0b51307ecc6a16a3d179d2ee82e7a7ffcb6 /source/blender/editors/include/UI_interface.h | |
parent | cecbb3498b245fbf2226c967001c4ab40b1c7b87 (diff) |
avoid having dangling panel pointers in the interface, unregistering addons could leave the interface pointing to freed memory.
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 080367c4325..16b5526ca26 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -42,6 +42,7 @@ struct ID; struct Main; struct ListBase; struct ARegion; +struct ARegionType; struct ScrArea; struct wmWindow; struct wmWindowManager; @@ -660,6 +661,7 @@ void uiDrawPanels(const struct bContext *C, struct ARegion *ar); struct Panel *uiBeginPanel(struct ScrArea *sa, struct ARegion *ar, uiBlock *block, struct PanelType *pt, int *open); void uiEndPanel(uiBlock *block, int width, int height); void uiScalePanels(struct ARegion *ar, float new_width); +void uiPanelClearType(struct wmWindowManager *wm, const struct ARegionType *art, const struct PanelType *type); /* Handlers * |