From: John L. <jla...@gm...> - 2012-12-07 05:13:38
|
On Dec 6, 2012 7:03 AM, "Eero Pajarre" <epa...@gm...> wrote: > > My wxLua program seems to be leaking resources, and the leak seems to > be caused by popup menus. I have very context sensitive menus which I > pop up, so I am creating a new menu on every click of right button of > the mouse. > > Google search found some hints for wxPython where it was recommended > to Destroy() the menu after it had been used. I had no success on this > with wxLua as Destroy seems to be (only) bound to the function > destroying menu elements, not for Destroying complete menu. > Use the delete() function to clean it up or better yet, try to reuse it if possible. When I have some time I will look into why it is not automatically handled. Regards, John |