It is okay to delete dragMessage even if it is NULL. Not worth the branch.
This commit is contained in:
parent
8f29b6e639
commit
8cf6d28f99
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user