From 69cc7ad64017e3e5398cda93ad0f32f4dd43ccf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 24 Jan 2007 19:56:56 +0000 Subject: [PATCH] Fixed a memory leak and the bug that could result in "pick one" menu fields and a white desktop preview background: it happened if the attribute containing the data couldn't be read or unflattened. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19948 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/backgrounds/BackgroundImage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preferences/backgrounds/BackgroundImage.cpp b/src/preferences/backgrounds/BackgroundImage.cpp index d56762ac04..4e6d1f997f 100644 --- a/src/preferences/backgrounds/BackgroundImage.cpp +++ b/src/preferences/backgrounds/BackgroundImage.cpp @@ -88,7 +88,7 @@ BackgroundImage::GetBackgroundImage(const BNode *node, bool isDesktop, delete [] buffer; if (error != B_OK) - return NULL; + return result; PRINT_OBJECT(container);