From c500a8578551ea6763e0d7c0f6b0f07c4e686d7d Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Sun, 29 Aug 2010 16:19:08 +0000 Subject: [PATCH] Box_Lib: MenuBar uses memory for buffer RAW image only temporarily is now. Early the buffer is was obtained permanently at the first request and after used it is not freed. git-svn-id: svn://kolibrios.org@1597 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/box_lib/trunk/menubar.mac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/programs/develop/libraries/box_lib/trunk/menubar.mac b/programs/develop/libraries/box_lib/trunk/menubar.mac index 2aaacaf947..9513081470 100644 --- a/programs/develop/libraries/box_lib/trunk/menubar.mac +++ b/programs/develop/libraries/box_lib/trunk/menubar.mac @@ -438,10 +438,7 @@ m_get_mouse_flag equ [edi+116] ret ;--------------------------------------------------------------------- .allocate_menu_area: - cmp m_buf_adress,dword 0 - je @f call .free_menu_area -@@: movzx ecx,word m_size_x1 movzx eax,word m_size_y1 imul ecx,eax @@ -451,9 +448,12 @@ m_get_mouse_flag equ [edi+116] ret ;--------------------------------------------------------------------- .free_menu_area: + cmp m_buf_adress,dword 0 + je @f mcall 68,13,m_buf_adress xor eax,eax mov m_buf_adress,eax +@@: ret ;--------------------------------------------------------------------- .get_menu_area: @@ -485,6 +485,7 @@ m_get_mouse_flag equ [edi+116] mov dx,m_start_y1 mcall 7, m_buf_adress + call .free_menu_area ret ;--------------------------------------------------------------------- .mouse_menu: