Ticket #13133: 0038-DeskbarMenu.cpp-fix-memory-leak.patch

File 0038-DeskbarMenu.cpp-fix-memory-leak.patch, 703 bytes (added by mt, 3 years ago)
  • src/apps/deskbar/DeskbarMenu.cpp

    From 29c7ec0826c4dd40554b4e8fb1c5e1a9881e0e1b Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Fri, 30 Dec 2016 06:43:17 +0900
    Subject: [PATCH 38/43] DeskbarMenu.cpp: fix memory leak
    
    ---
     src/apps/deskbar/DeskbarMenu.cpp | 3 +++
     1 file changed, 3 insertions(+)
    
    diff --git a/src/apps/deskbar/DeskbarMenu.cpp b/src/apps/deskbar/DeskbarMenu.cpp
    index a360c75..144b1bc 100644
    a b TDeskbarMenu::AddNextItem()  
    196196                        &data->fTarget, data->fDragMessage);
    197197                }
    198198            }
     199        } else {
     200            for (int i = 0; i < recentTypes; i++)
     201                delete recentItem[i];
    199202        }
    200203
    201204        AddSeparatorItem();