Fix what empirically seems to be a double-delete, though I'm not sure how it is.
authorCarl Hetherington <cth@carlh.net>
Mon, 29 May 2017 23:32:28 +0000 (00:32 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 29 May 2017 23:32:28 +0000 (00:32 +0100)
src/lib/encode_server.cc

index cef2ad06f45250c1f597046d7ffb50851631ad8a..7810cc95ed16f790809771e9ddaec7af44c43963 100644 (file)
@@ -97,7 +97,6 @@ EncodeServer::~EncodeServer ()
        if (_broadcast.socket) {
                _broadcast.socket->close ();
        }
        if (_broadcast.socket) {
                _broadcast.socket->close ();
        }
-       delete _broadcast.socket;
        _broadcast.io_service.stop ();
        if (_broadcast.thread) {
                /* Ideally this would be a DCPOMATIC_ASSERT(_broadcast.thread->joinable()) but we
        _broadcast.io_service.stop ();
        if (_broadcast.thread) {
                /* Ideally this would be a DCPOMATIC_ASSERT(_broadcast.thread->joinable()) but we