Merge "free weakref to linearblock when it is destroy"