Ticket #13135: 0042-NotificationWindow.cpp-fix-memory-leak.patch

File 0042-NotificationWindow.cpp-fix-memory-leak.patch, 913 bytes (added by mt, 7 years ago)
  • src/servers/notification/NotificationWindow.cpp

    From 9b7b359bbc0f765b0833fafea35703098045ddbb Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Fri, 30 Dec 2016 12:02:58 +0900
    Subject: [PATCH 42/43] NotificationWindow.cpp: fix memory leak
    
    ---
     src/servers/notification/NotificationWindow.cpp | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/src/servers/notification/NotificationWindow.cpp b/src/servers/notification/NotificationWindow.cpp
    index c99070d..5d1152e 100644
    a b NotificationWindow::MessageReceived(BMessage* message)  
    204204                    _ShowHide();
    205205
    206206                    reply.AddInt32("error", B_OK);
    207                 } else
     207                } else {
     208                    delete view;
    208209                    reply.AddInt32("error", B_NOT_ALLOWED);
     210                }
    209211            } else {
    210212                reply.what = B_MESSAGE_NOT_UNDERSTOOD;
    211213                reply.AddInt32("error", B_ERROR);