mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-09 11:30:51 +00:00
older glib compat fix
This commit is contained in:
parent
26d8547ea0
commit
10bcc6548f
1 changed files with 5 additions and 1 deletions
|
@ -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] ) );
|
||||
|
|
Loading…
Reference in a new issue