Heat oil in a pan and add the chopped onion, leeks, and bell pepper. Cook with a lid for 15-20 minutes, stirring frequently. Stir in garlic for the last few minutes.
Let simmer for a few more minutes (the mixture should thicken considerably), then turn off the heat. Pour the filling into the pie crust and smooth it evenly.