If your apricots or peaches had brown flesh last year, especially in the part surrounding the pit, they were probably infected with brown rot. It's a common fungal disease of stone fruit. You can spray with a copper spray at pink bud stage. A more important means of control is to remove affected fruit as soon as you notice it. The UC Pest Note on Brown Rot has more information.