mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
util: clear field when destroying
Just to be a bit more defensive.
This commit is contained in:
@ -92,6 +92,7 @@ element_free (gpointer data)
|
|||||||
{
|
{
|
||||||
Element *e = data;
|
Element *e = data;
|
||||||
|
|
||||||
|
e->iter = NULL;
|
||||||
g_clear_object (&e->object);
|
g_clear_object (&e->object);
|
||||||
g_slice_free (Element, e);
|
g_slice_free (Element, e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user