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
This commit is contained in:
@@ -88,7 +88,7 @@ BackgroundImage::GetBackgroundImage(const BNode *node, bool isDesktop,
|
|||||||
delete [] buffer;
|
delete [] buffer;
|
||||||
|
|
||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
return NULL;
|
return result;
|
||||||
|
|
||||||
PRINT_OBJECT(container);
|
PRINT_OBJECT(container);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user