mirror of
https://github.com/godotengine/godot-platform-haiku.git
synced 2026-01-04 06:09:42 +03:00
Remove unnecessary null pointer checks
This commit is contained in:
@@ -118,8 +118,7 @@ void AudioDriverMediaKit::unlock() {
|
||||
}
|
||||
|
||||
void AudioDriverMediaKit::finish() {
|
||||
if (player)
|
||||
delete player;
|
||||
delete player;
|
||||
|
||||
if (samples_in) {
|
||||
memdelete_arr(samples_in);
|
||||
|
||||
@@ -16,9 +16,7 @@ HaikuDirectWindow::HaikuDirectWindow(BRect p_frame)
|
||||
|
||||
|
||||
HaikuDirectWindow::~HaikuDirectWindow() {
|
||||
if (update_runner) {
|
||||
delete update_runner;
|
||||
}
|
||||
delete update_runner;
|
||||
}
|
||||
|
||||
void HaikuDirectWindow::SetHaikuGLView(HaikuGLView* p_view) {
|
||||
|
||||
Reference in New Issue
Block a user