test if node is NULL

This commit is contained in:
Asbjørn Pettersen 1999-10-31 18:00:58 +00:00
parent 531f83a566
commit a6039388a3
10 changed files with 44 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sun Oct 31 18:55:01 1999 ape@spacetec.no (Asbjorn Pettersen)
* gcache.c (g_cache_remove): Test if node is NULL.
If not tested, GIMP's script-fu will crash.
Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org> Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org>
* gdataset.c (g_data_set_internal): remove g_dataset_global_lock around * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around

View File

@ -1,3 +1,8 @@
Sun Oct 31 18:55:01 1999 ape@spacetec.no (Asbjorn Pettersen)
* gcache.c (g_cache_remove): Test if node is NULL.
If not tested, GIMP's script-fu will crash.
Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org> Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org>
* gdataset.c (g_data_set_internal): remove g_dataset_global_lock around * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around

View File

@ -1,3 +1,8 @@
Sun Oct 31 18:55:01 1999 ape@spacetec.no (Asbjorn Pettersen)
* gcache.c (g_cache_remove): Test if node is NULL.
If not tested, GIMP's script-fu will crash.
Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org> Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org>
* gdataset.c (g_data_set_internal): remove g_dataset_global_lock around * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around

View File

@ -1,3 +1,8 @@
Sun Oct 31 18:55:01 1999 ape@spacetec.no (Asbjorn Pettersen)
* gcache.c (g_cache_remove): Test if node is NULL.
If not tested, GIMP's script-fu will crash.
Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org> Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org>
* gdataset.c (g_data_set_internal): remove g_dataset_global_lock around * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around

View File

@ -1,3 +1,8 @@
Sun Oct 31 18:55:01 1999 ape@spacetec.no (Asbjorn Pettersen)
* gcache.c (g_cache_remove): Test if node is NULL.
If not tested, GIMP's script-fu will crash.
Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org> Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org>
* gdataset.c (g_data_set_internal): remove g_dataset_global_lock around * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around

View File

@ -1,3 +1,8 @@
Sun Oct 31 18:55:01 1999 ape@spacetec.no (Asbjorn Pettersen)
* gcache.c (g_cache_remove): Test if node is NULL.
If not tested, GIMP's script-fu will crash.
Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org> Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org>
* gdataset.c (g_data_set_internal): remove g_dataset_global_lock around * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around

View File

@ -1,3 +1,8 @@
Sun Oct 31 18:55:01 1999 ape@spacetec.no (Asbjorn Pettersen)
* gcache.c (g_cache_remove): Test if node is NULL.
If not tested, GIMP's script-fu will crash.
Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org> Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org>
* gdataset.c (g_data_set_internal): remove g_dataset_global_lock around * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around

View File

@ -1,3 +1,8 @@
Sun Oct 31 18:55:01 1999 ape@spacetec.no (Asbjorn Pettersen)
* gcache.c (g_cache_remove): Test if node is NULL.
If not tested, GIMP's script-fu will crash.
Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org> Sun Oct 17 18:11:40 1999 Tim Janik <timj@gtk.org>
* gdataset.c (g_data_set_internal): remove g_dataset_global_lock around * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around

View File

@ -157,6 +157,8 @@ g_cache_remove (GCache *cache,
key = g_hash_table_lookup (rcache->value_table, value); key = g_hash_table_lookup (rcache->value_table, value);
node = g_hash_table_lookup (rcache->key_table, key); node = g_hash_table_lookup (rcache->key_table, key);
g_return_if_fail (node != NULL);
node->ref_count -= 1; node->ref_count -= 1;
if (node->ref_count == 0) if (node->ref_count == 0)
{ {

View File

@ -157,6 +157,8 @@ g_cache_remove (GCache *cache,
key = g_hash_table_lookup (rcache->value_table, value); key = g_hash_table_lookup (rcache->value_table, value);
node = g_hash_table_lookup (rcache->key_table, key); node = g_hash_table_lookup (rcache->key_table, key);
g_return_if_fail (node != NULL);
node->ref_count -= 1; node->ref_count -= 1;
if (node->ref_count == 0) if (node->ref_count == 0)
{ {