Thread
:
New Menus Memory Leak Issue
View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
01-30-2013 , 20:19 Re: New Menus Memory Leak Issue
#
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.
__________________
Polymorph
,
GitHub
Last edited by fysiks; 01-30-2013 at
20:21
.
fysiks
View Public Profile
Send a private message to fysiks
Find More Posts by fysiks