Make TextLayout's componet a weakref to prevent weak references.