hrev43605 adds 1 changeset to branch 'master' old head: be6c4d6a5d08fde95afe857c881e1396420d3a1c new head: fccd8899fcb583bfb73c5c26c9fcd714b963959b ---------------------------------------------------------------------------- fccd889: People: memory leak fix. CID 10694. [ Philippe Saint-Pierre <stpere@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev43605 Commit: fccd8899fcb583bfb73c5c26c9fcd714b963959b URL: http://cgit.haiku-os.org/haiku/commit/?id=fccd889 Author: Philippe Saint-Pierre <stpere@xxxxxxxxx> Date: Tue Jan 3 00:27:21 2012 UTC ---------------------------------------------------------------------------- 1 files changed, 3 insertions(+), 1 deletions(-) src/apps/people/PictureView.cpp | 4 +++- ---------------------------------------------------------------------------- diff --git a/src/apps/people/PictureView.cpp b/src/apps/people/PictureView.cpp index f19f492..e0bb44f 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;