Destroying a non-modal panel

Styler

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?
 

Sensei

TrueArt Support
Add code to create event handler:

XpDESTROYNOTIFY( func )
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