Commit 4e7f1bb6 authored by Claudio Valerio's avatar Claudio Valerio

set the deleted items to NULL

parent 3d162dcc
......@@ -61,6 +61,8 @@ UBMimeDataGraphicsItem::UBMimeDataGraphicsItem(QList<UBItem*> pItems)
UBMimeDataGraphicsItem::~UBMimeDataGraphicsItem()
{
foreach(UBItem* item, mItems)
delete item;
foreach(UBItem* item, mItems){
delete item;
item = 0;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment