Skip to content

Commit

Permalink
clang-tidy: run readability-delete-null-pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Mar 15, 2021
1 parent 913fbef commit f1c8679
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions core/hw/maple/maple_devs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ void maple_device::Setup(u32 port, int playerNum)
}
maple_device::~maple_device()
{
if (config)
delete config;
delete config;
}

/*
Expand Down
3 changes: 1 addition & 2 deletions core/hw/pvr/Renderer_if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,7 @@ void rend_init_renderer()
delete renderer;
if (fallback_renderer == NULL || !fallback_renderer->Init())
{
if (fallback_renderer != NULL)
delete fallback_renderer;
delete fallback_renderer;
die("Renderer initialization failed\n");
}
INFO_LOG(PVR, "Selected renderer initialization failed. Falling back to default renderer.");
Expand Down

0 comments on commit f1c8679

Please sign in to comment.