From 10bcc6548f8d7ff1272f231b1f97b068b9fc345e Mon Sep 17 00:00:00 2001 From: Timothee Besset Date: Wed, 20 Nov 2013 20:21:58 +0000 Subject: [PATCH] older glib compat fix --- radiant/watchbsp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radiant/watchbsp.cpp b/radiant/watchbsp.cpp index eb1c7aa1..31b88d40 100644 --- a/radiant/watchbsp.cpp +++ b/radiant/watchbsp.cpp @@ -566,7 +566,11 @@ void CWatchBSP::DoMonitoringLoop( GPtrArray *pCmd, char *sBSPName ){ m_sBSPName = NULL; } - m_pCmd = g_ptr_array_new_full( pCmd->len, g_free ) ; + // glib 2.30 +// m_pCmd = g_ptr_array_new_full( pCmd->len, g_free ); + + m_pCmd = g_ptr_array_sized_new( pCmd->len ); + g_ptr_array_set_free_func( m_pCmd, g_free ); for ( i = 0; i < pCmd->len; i++ ) { g_ptr_array_add( m_pCmd, g_strdup( (char *) pCmd->pdata[i] ) );