Destroying a non-modal panel


New member
I reviewed code samples in sdk and noticed that they never call the "destroy" function for non-modal panel/xpanel dialogs. I guess in a real plugin I'll have a memory leak. Am I right? If so, what is the best way to control on_panel_closed event?


TrueArt Support
Add code to create event handler:

Set the callback that XPanels will call after the panel has been destroyed. The argument points to an LWXPanelDestroyNotifyFunc.

and you should see that LW is destroying LWXPanelID by itself.
Top Bottom