MCPcopy Create free account
hub / github.com/GNOME/gjs / check_js_object_finalized

Method check_js_object_finalized

gi/object.cpp:177–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void ObjectInstance::check_js_object_finalized() {
178 if (!m_uses_toggle_ref)
179 return;
180 if (G_UNLIKELY(m_wrapper_finalized)) {
181 g_critical(
182 "Object %p (a %s) resurfaced after the JS wrapper was finalized. "
183 "This is some library doing dubious memory management inside "
184 "dispose()",
185 m_ptr.get(), type_name());
186 m_wrapper_finalized = false;
187 g_assert(!m_wrapper); // should associate again with a new wrapper
188 }
189}
190
191ObjectPrototype* ObjectPrototype::for_gtype(GType gtype) {
192 return static_cast<ObjectPrototype*>(

Callers 1

for_gobjectMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected