mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
gmain: mark newest id used when source id overflows
When the source id reaches G_MAXUINT (just prior to overflow), we record the existing source ids to prevent reassigning them. As we are about to assign G_MAXUINT to the triggering source, that id should be added as well. https://bugzilla.gnome.org/show_bug.cgi?id=710002
This commit is contained in:
parent
e2d5282636
commit
c4c3ee6087
@ -1083,6 +1083,7 @@ assign_source_id_unlocked (GMainContext *context,
|
||||
GUINT_TO_POINTER (source->source_id));
|
||||
}
|
||||
id = G_MAXUINT;
|
||||
g_hash_table_add (context->overflow_used_source_ids, GUINT_TO_POINTER (id));
|
||||
}
|
||||
else if (context->overflow_used_source_ids == NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user