Raised This Month: $51 Target: $400
 12% 

New Menus Memory Leak Issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 01-30-2013 , 16:34   New Menus Memory Leak Issue
Reply With Quote #1

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_clcmd("say /test""OnSayTest");
}

public 
OnSayTest(client)
{
    new 
menu menu_create("Test Menu""OnMenu");
    
    
menu_additem(menu"Item");
    
menu_display(clientmenu);
    
    return 
PLUGIN_HANDLED;
}

public 
OnMenu(clientmenuitem)
{
    
menu_destroy(menu);
    
    return 
PLUGIN_HANDLED;

say /testradio1/radio2/radio3/open any other menu → memory leak - Test Menu is never destroyed.

Any workarounds? Caching menus isn't really an option when using ML or when the menu consists of players. Is it worth filing as a bug report?
__________________
hleV is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode