Rinse peaches and apricots, blanch in a pot of boiling water, then peel, cut in half, and remove pits. Cut peaches into wedges. Halve apricots. Peel apple, cut in half, remove seeds and cut into wedges. Peel onion, halve and cut crosswise into strips.
Rinse chicken legs and pat dry. Heat 3 tablespoons of oil in a large Dutch oven and fry chicken legs on all sides until browned. Remove chicken from the Dutch oven, add curry paste and onions and saute until soft. Add coconut milk. Add chicken legs back into the Dutch oven and cover with vegetable stock. Cover, cook over medium heat for 25 minutes and season with salt and pepper.
Add peaches and apricots and cook for 5 minutes. Add lime juice and season the sauce with a pinch of sugar, salt and pepper. Add some basil leaves (set aside a few for garnish) to the wok and cook for 5 minutes. Serve garnished with basil leaves.