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
This commit is contained in:
Marat Zakiyanov (Mario79) 2010-08-29 16:19:08 +00:00
parent a5b6b8b8e1
commit c500a85785

View File

@ -438,10 +438,7 @@ m_get_mouse_flag equ [edi+116]
ret ret
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
.allocate_menu_area: .allocate_menu_area:
cmp m_buf_adress,dword 0
je @f
call .free_menu_area call .free_menu_area
@@:
movzx ecx,word m_size_x1 movzx ecx,word m_size_x1
movzx eax,word m_size_y1 movzx eax,word m_size_y1
imul ecx,eax imul ecx,eax
@ -451,9 +448,12 @@ m_get_mouse_flag equ [edi+116]
ret ret
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
.free_menu_area: .free_menu_area:
cmp m_buf_adress,dword 0
je @f
mcall 68,13,m_buf_adress mcall 68,13,m_buf_adress
xor eax,eax xor eax,eax
mov m_buf_adress,eax mov m_buf_adress,eax
@@:
ret ret
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
.get_menu_area: .get_menu_area:
@ -485,6 +485,7 @@ m_get_mouse_flag equ [edi+116]
mov dx,m_start_y1 mov dx,m_start_y1
mcall 7, m_buf_adress mcall 7, m_buf_adress
call .free_menu_area
ret ret
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
.mouse_menu: .mouse_menu: