Merge "Replace the use of helper function IsBufferReleased to member function"