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:
parent
db8d0b8781
commit
70d3fa99c2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue