From fccd8899fcb583bfb73c5c26c9fcd714b963959b Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Mon, 2 Jan 2012 19:27:21 -0500 Subject: [PATCH] People: memory leak fix. CID 10694. --- src/apps/people/PictureView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/people/PictureView.cpp b/src/apps/people/PictureView.cpp index f19f4926c3..e0bb44fc90 100644 --- a/src/apps/people/PictureView.cpp +++ b/src/apps/people/PictureView.cpp @@ -445,8 +445,10 @@ PictureView::_BeginDrag(BPoint sourcePoint) drag.AddString("be:clip_name", name.String()); BTranslatorRoster* roster = BTranslatorRoster::Default(); - if (roster == NULL) + if (roster == NULL) { + delete bitmap; return; + } int32 infoCount; translator_info* info;