Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parse: don't remove datalist items during iteration
The glib documentation says that it should be safe to remove items from inside the function called by g_datalist_foreach but I've found some crashes related to it where the last element was returning NULL. This is one of the instances that causes the crash: passthrough: Utf14: sit cupidatat aliquip proident ut reprehenderit6e2: 16408719.105799645 connection.type: ullamco officia Message from glib: GLib-CRITICAL **: 10:16:09.406: g_strsplit: assertion 'string != NULL' failed With this change the bad keys will be stored in an GArray and removed from the datalist outside the foreach.
- Loading branch information