HaikuDepot: Show default icons early in list

Resolves #19205

Change-Id: I16def80ba004efbea4303f7d74ee87678a959027
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8511
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
This commit is contained in:
Andrew Lindesay 2024-10-30 22:04:30 +13:00 committed by waddlesplash
parent 905c332163
commit 1c4d43a6b0

View File

@ -130,12 +130,14 @@ PackageIconTarRepository::PackageIconTarRepository()
fDefaultIconCache(LIMIT_ICON_CACHE),
fIconDataBuffer(new BMallocIO())
{
_InitDefaultVectorIcon();
}
PackageIconTarRepository::~PackageIconTarRepository()
{
delete fIconDataBuffer;
delete fDefaultIconVectorData;
}
@ -159,8 +161,6 @@ PackageIconTarRepository::Init(BPath& tarPath)
_Close();
_InitDefaultVectorIcon();
status_t result = B_OK;
if (tarPath.Path() == NULL) {
@ -214,10 +214,6 @@ PackageIconTarRepository::_Close()
delete fTarIo;
fTarIo = NULL;
fIconTarPtrs.Clear();
delete fDefaultIconVectorData;
fDefaultIconVectorData = NULL;
fDefaultIconVectorDataSize = 0;
fDefaultIconCache.Clear();
}