CID 867: Memory leak.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38050 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues 2010-08-12 12:53:16 +00:00
parent db8d0b8781
commit 70d3fa99c2
1 changed files with 4 additions and 0 deletions

View File

@ -1210,6 +1210,10 @@ IconView::_AddOrEditIcon()
// can be preserved. Maybe in a second (optional) attribute
// where ever a vector icon attribute is present?
}
if (icon != fIconData) {
delete icon;
}
}
be_roster->Launch("application/x-vnd.haiku-icon_o_matic", &message);