https://github.com/xmms2/xmms2-devel/pull/5 From: Sergei Trofimovich Date: Thu, 6 Dec 2018 07:19:08 +0000 Subject: [PATCH] OTHER: fix c++ client dangling reference --- a/src/include/xmmsclient/xmmsclient++/mainloop.h +++ b/src/include/xmmsclient/xmmsclient++/mainloop.h @@ -41,7 +41,7 @@ namespace Xmms * @note The constructor should only initialize the * mainloop, not start it! */ - MainloopInterface( xmmsc_connection_t* conn ) : + MainloopInterface( xmmsc_connection_t*& conn ) : running_( false ), conn_( conn ) { } /** Destructor. Should also stop the loop.