From ba03d61b4f5d03da428b1afa054c9c74f4a4e2c6 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Fri, 2 Aug 2013 21:04:57 -0400 Subject: [PATCH] DeskBar: use the prepared transparent icon when necessary In the odd case where there is no icon for an app, and the generic 3 boxes icon is also unavailable/removed, Deskbar now properly draws the transparent icon that was prepared, but not used (and leaked). --- src/apps/deskbar/BarApp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/deskbar/BarApp.cpp b/src/apps/deskbar/BarApp.cpp index cc9a629835..920567a793 100644 --- a/src/apps/deskbar/BarApp.cpp +++ b/src/apps/deskbar/BarApp.cpp @@ -969,7 +969,7 @@ TBarApp::FetchAppIcon(BarTeamInfo* barInfo) } delete barInfo->iconCache[index]; - barInfo->iconCache[index] = NULL; + barInfo->iconCache[index] = barInfo->icon = icon; }