Eric Sunshine increased robustness of CS_STATIC_VARIABLE_CLEANUP by making it operate gracefully if invoked multiple times; rather than simply crashing.  Also fixed it so that it does not realloc() a null pointer since doing so is not portable.
Eric Sunshine increased robustness of CS_STATIC_VARIABLE_CLEANUP by making
it operate gracefully if invoked multiple times; rather than simply
crashing.  Also fixed it so that it does not realloc() a null pointer since
doing so is not portable.


git-svn-id: 28d9401aa571d5108e51b194aae6f24ca5964c06@16976 8cc4aa7f-3514-0410-904f-f2cc9021211c

crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS