diff -up glib-2.46.1/gobject/gobject.c.tr glib-2.46.1/gobject/gobject.c
--- glib-2.46.1/gobject/gobject.c.tr	2015-10-14 14:52:57.000000000 +0200
+++ glib-2.46.1/gobject/gobject.c	2015-11-19 18:45:14.620279019 +0100
@@ -3185,7 +3204,7 @@ g_object_unref (gpointer _object)
 	    {
 	      /* catch objects not chaining finalize handlers */
 	      G_LOCK (debug_objects);
-	      g_assert (g_hash_table_lookup (debug_objects_ht, object) == NULL);
+	      g_warn_if_fail (!g_hash_table_remove (debug_objects_ht, object));
 	      G_UNLOCK (debug_objects);
 	    }
 #endif	/* G_ENABLE_DEBUG */
