View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-30-2013 , 20:19   Re: New Menus Memory Leak Issue
Reply With Quote #3

Since the menu is client specific, cache menu id per player and always destroy before starting new menu (not sure if destroying an invalid menu will cause an error or now though). Also, loop through all players' menu id's on plugin_end() (if you "think" the menus are not destroyed on mapchange).

This suggestion is similar to handling player specific tasks.

OR, if there is a way to check if a menu is valid (based on the last cached menu id) you might be able to just display it (but it won't be updated with the latest values).

P.S. Your thread is not a tutorial or a code snippet and therefor does not belong in this forum.
__________________

Last edited by fysiks; 01-30-2013 at 20:21.
fysiks is offline