Lines Matching refs:wstack
1943 WeakRefStack *wstack = data; in weak_refs_notify() local
1946 for (i = 0; i < wstack->n_weak_refs; i++) in weak_refs_notify()
1947 wstack->weak_refs[i].notify (wstack->weak_refs[i].data, wstack->object); in weak_refs_notify()
1948 g_free (wstack); in weak_refs_notify()
1968 WeakRefStack *wstack; in g_object_weak_ref() local
1975 wstack = g_datalist_id_remove_no_notify (&object->qdata, quark_weak_refs); in g_object_weak_ref()
1976 if (wstack) in g_object_weak_ref()
1978 i = wstack->n_weak_refs++; in g_object_weak_ref()
1979 wstack = g_realloc (wstack, sizeof (*wstack) + sizeof (wstack->weak_refs[0]) * i); in g_object_weak_ref()
1983 wstack = g_renew (WeakRefStack, NULL, 1); in g_object_weak_ref()
1984 wstack->object = object; in g_object_weak_ref()
1985 wstack->n_weak_refs = 1; in g_object_weak_ref()
1988 wstack->weak_refs[i].notify = notify; in g_object_weak_ref()
1989 wstack->weak_refs[i].data = data; in g_object_weak_ref()
1990 g_datalist_id_set_data_full (&object->qdata, quark_weak_refs, wstack, weak_refs_notify); in g_object_weak_ref()
2006 WeakRefStack *wstack; in g_object_weak_unref() local
2012 wstack = g_datalist_id_get_data (&object->qdata, quark_weak_refs); in g_object_weak_unref()
2013 if (wstack) in g_object_weak_unref()
2017 for (i = 0; i < wstack->n_weak_refs; i++) in g_object_weak_unref()
2018 if (wstack->weak_refs[i].notify == notify && in g_object_weak_unref()
2019 wstack->weak_refs[i].data == data) in g_object_weak_unref()
2022 wstack->n_weak_refs -= 1; in g_object_weak_unref()
2023 if (i != wstack->n_weak_refs) in g_object_weak_unref()
2024 wstack->weak_refs[i] = wstack->weak_refs[wstack->n_weak_refs]; in g_object_weak_unref()