diff options
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2016-01-04 11:46:16 +0100 |
---|---|---|
committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2016-01-04 11:46:16 +0100 |
commit | cabf9234849508ba7285d1a5bafd3bab692eb80f (patch) | |
tree | c681c777e8a8867a0bbd955558a92926653ba300 /drivers/rtaudio | |
parent | cb39db0b02c2d69994e2cd523844a2a9d3087d85 (diff) |
Remove unnecessary null pointer checks
Diffstat (limited to 'drivers/rtaudio')
-rw-r--r-- | drivers/rtaudio/RtAudio.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/rtaudio/RtAudio.cpp b/drivers/rtaudio/RtAudio.cpp index 72ca836907..86981e56d2 100644 --- a/drivers/rtaudio/RtAudio.cpp +++ b/drivers/rtaudio/RtAudio.cpp @@ -139,8 +139,7 @@ void RtAudio :: getCompiledApi( std::vector<RtAudio::Api> &apis ) throw() void RtAudio :: openRtApi( RtAudio::Api api ) { - if ( rtapi_ ) - delete rtapi_; + delete rtapi_; rtapi_ = 0; #if defined(__UNIX_JACK__) @@ -216,8 +215,7 @@ RtAudio :: RtAudio( RtAudio::Api api ) RtAudio :: ~RtAudio() throw() { - if ( rtapi_ ) - delete rtapi_; + delete rtapi_; } void RtAudio :: openStream( RtAudio::StreamParameters *outputParameters, |