Lo he resuelto cambiando la variable
por
Código:
void WindowDirectories::setFiles( char **files, int numFiles )
{
this->files = new char * [numFiles];
for ( int i = 0; i < numFiles; i++)
{
this->files[i] = new char[strlen(files[i])+1];
strcpy( this->files[i], files[i] );
}
}