diff options
author | Carl Hetherington <carl@carlh.net> | 2008-12-18 19:31:00 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2008-12-18 19:31:00 +0000 |
commit | 4e1f451520975868659f4c00d00883f5f1cd5805 (patch) | |
tree | 7a8a51d65d70932e8151bbbeafc8eae49e60cd65 /libs/surfaces/mackie/mackie_control_protocol_poll.cc | |
parent | be655cc5af1b059de77bb4215c13f14013fc73da (diff) |
Remove unnecessary 0 checks before delete; see http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.8 Apologies for the big commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@4332 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/mackie_control_protocol_poll.cc')
-rw-r--r-- | libs/surfaces/mackie/mackie_control_protocol_poll.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libs/surfaces/mackie/mackie_control_protocol_poll.cc b/libs/surfaces/mackie/mackie_control_protocol_poll.cc index 88c00ed6eb..2bf992f1b7 100644 --- a/libs/surfaces/mackie/mackie_control_protocol_poll.cc +++ b/libs/surfaces/mackie/mackie_control_protocol_poll.cc @@ -93,11 +93,7 @@ void MackieControlProtocol::update_ports() if ( _ports_changed ) { // create new pollfd structures - if ( pfd != 0 ) - { - delete[] pfd; - pfd = 0; - } + delete[] pfd; pfd = new pollfd[_ports.size()]; #ifdef DEBUG cout << "pfd: " << pfd << endl; |