set the deleted items to NULL

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent 3d162dcc58
commit 4e7f1bb646
  1. 6
      src/core/UBMimeData.cpp

@ -61,6 +61,8 @@ UBMimeDataGraphicsItem::UBMimeDataGraphicsItem(QList<UBItem*> pItems)
UBMimeDataGraphicsItem::~UBMimeDataGraphicsItem() UBMimeDataGraphicsItem::~UBMimeDataGraphicsItem()
{ {
foreach(UBItem* item, mItems) foreach(UBItem* item, mItems){
delete item; delete item;
item = 0;
}
} }

Loading…
Cancel
Save