Do not check for NULL before calling delete
The check is done already by C++. The assignment was removed as was just assigning a local variable. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
decf2c9035
commit
68e422f3b8
@ -198,11 +198,7 @@ DodRemoveDevice(
|
||||
|
||||
QxlDod* pQxl = reinterpret_cast<QxlDod*>(pDeviceContext);
|
||||
|
||||
if (pQxl)
|
||||
{
|
||||
delete pQxl;
|
||||
pQxl = NULL;
|
||||
}
|
||||
delete pQxl;
|
||||
|
||||
DbgPrint(TRACE_LEVEL_VERBOSE, ("<--- %s\n", __FUNCTION__));
|
||||
return STATUS_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user