mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
gobject: Speed up finalization
Move the warning about finalize-during-construction to debug-only.
This commit is contained in:
parent
fa8c7c0da6
commit
b7be0f95a8
@ -1214,13 +1214,13 @@ floating_check (GObject *object)
|
||||
static void
|
||||
g_object_finalize (GObject *object)
|
||||
{
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
if (object_in_construction (object))
|
||||
{
|
||||
g_critical ("object %s %p finalized while still in-construction",
|
||||
G_OBJECT_TYPE_NAME (object), object);
|
||||
}
|
||||
|
||||
#ifdef G_ENABLE_DEBUG
|
||||
if (floating_check (object))
|
||||
{
|
||||
g_critical ("A floating object %s %p was finalized. This means that someone\n"
|
||||
|
Loading…
Reference in New Issue
Block a user