It is okay to delete dragMessage even if it is NULL. Not worth the branch.

This commit is contained in:
John Scipione 2012-07-22 15:58:31 -04:00
parent 8f29b6e639
commit 8cf6d28f99

View File

@ -120,8 +120,7 @@ BarViewMessageFilter::Filter(BMessage* message, BHandler** target)
break;
}
if (message->HasMessage("be:drag_message"))
delete dragMessage;
delete dragMessage;
}
return B_DISPATCH_MESSAGE;