clutter-id-pool: fix warning on bad pick
Commit 13ac1fe7
purported to extend the _clutter_id_pool_lookup()
warning to the case where the id referred to a deleted actor, but did
not actually do so, because _clutter_id_pool_remove() set deleted IDs
to 0xdecafbad, not NULL. Fix this.
https://bugzilla.gnome.org/show_bug.cgi?id=650597
This commit is contained in:
parent
46aadb745b
commit
e83a7851ad
@ -101,8 +101,7 @@ _clutter_id_pool_remove (ClutterIDPool *id_pool,
|
||||
|
||||
array = (void*) id_pool->array->data;
|
||||
|
||||
/* set pointer to a recognizably voided value */
|
||||
array[id_] = (void*)0xdecafbad;
|
||||
array[id_] = NULL;
|
||||
|
||||
id_pool->free_ids = g_slist_prepend (id_pool->free_ids,
|
||||
GUINT_TO_POINTER (id_));
|
||||
|
Loading…
Reference in New Issue
Block a user