/* Frees all memory allocated by the #GStringChunk. After calling g_string_chunk_free() it is not safe to access any of the strings which were contained within it.  */
void g_string_chunk_free(GStringChunk *chunk)
/* Frees all memory allocated by the #GStringChunk. After calling g_string_chunk_free() it is not safe to access any of the strings which were contained within it.  */
void g_string_chunk_free(GStringChunk *chunk)
{
  g_return_if_fail (chunk != NULL);
  if (chunk->storage_list)
    g_slist_free_full (chunk->storage_list, g_free);
  if (chunk->const_table)
    g_hash_table_destroy (chunk->const_table);
  g_free (chunk);
}