Implemented pattern_s destructor