Ticket #10362: 0001-Coverity-CID-992461-Fixed-memory-leak.patch

File 0001-Coverity-CID-992461-Fixed-memory-leak.patch, 833 bytes (added by Mrowqa, 11 years ago)
  • src/kits/tracker/PoseViewScripting.cpp

    From b39d22af034364b3739513e3f10fbf820d4b24e2 Mon Sep 17 00:00:00 2001
    From: Mrowqa <artur.jamro@gmail.com>
    Date: Wed, 1 Jan 2014 23:25:18 +0100
    Subject: [PATCH] Coverity CID 992461: Fixed memory leak
    
    ---
     src/kits/tracker/PoseViewScripting.cpp | 4 +++-
     1 file changed, 3 insertions(+), 1 deletion(-)
    
    diff --git a/src/kits/tracker/PoseViewScripting.cpp b/src/kits/tracker/PoseViewScripting.cpp
    index cb9d299..be18e92 100644
    a b BPoseView::DeleteProperty(BMessage* _SCRIPTING_ONLY(specifier),  
    486486                entryList->AddItem(
    487487                    new entry_ref(*pose->TargetModel()->EntryRef()));
    488488            }
    489         } else
     489        } else {
     490            delete entryList;
    490491            return false;
     492        }
    491493
    492494        if (error == B_OK) {
    493495            TrackerSettings settings;