summaryrefslogtreecommitdiff
path: root/media-sound/xmms2/files/xmms2-0.8_p20161122-cpp-client.patch
blob: df1d1c616576a067af43721c53c0b378206614d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
https://github.com/xmms2/xmms2-devel/pull/5

From: Sergei Trofimovich <slyfox@gentoo.org>
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.