Fixed memory leak caused by storing refs in integer column.
Fixed memory leak caused by storing refs in integer column.

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core