diff options
author | jdekozak <jdekozak@hotmail.com> | 2013-05-14 20:45:38 +0200 |
---|---|---|
committer | jdekozak <jdekozak@hotmail.com> | 2013-05-17 08:03:56 +0200 |
commit | e0971b2506a255adff5ef1aea9bc35c60b891de3 (patch) | |
tree | e06b0106b2516bca65cb52b7813c6682945a3218 /libs | |
parent | ae74d66eb79754ed2ce1416f4f57d827116af598 (diff) |
free buffer then set it to 0
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session_ltc.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/session_ltc.cc b/libs/ardour/session_ltc.cc index 177598091e..a945cb3dcb 100644 --- a/libs/ardour/session_ltc.cc +++ b/libs/ardour/session_ltc.cc @@ -93,7 +93,10 @@ void Session::ltc_tx_cleanup() { DEBUG_TRACE (DEBUG::LTC, "LTC TX cleanup\n"); - if (ltc_enc_buf) free(ltc_enc_buf); + if (ltc_enc_buf) { + free(ltc_enc_buf); + ltc_enc_buf = 0; + } ltc_encoder_free(ltc_encoder); ltc_encoder = NULL; } |