In 1949 , neutrality was abandoned and Norway became a member of NATO .