Tiny black bugs with wings could be a lot of different things. My first thought though is some type of fruit fly. Usually when whatever thing they are infesting is thrown away they stop being a problem. Another pantry pest that people often end up dealing with is Indian Meal Moths. They are pretty common, and at least in my area are probably the most common pantry pest. Try doing a google image search for them and see if that is what you're dealing with. Most pantry pests are going to go after some sort of grain, or oat, or wheat product. They will not usually go away on their own. Normally the solution is going to be to go through all your pantry items and throw away everything that you do not absolutely need, sealed boxes included. It's amazing what all they can get in to, even if it is sealed. If you do not want to throw things away you can either freeze it for 24 hours, which will kill any possible bugs, or you can put your items into a dark hefty bag and set it out in the sun on a hot day for a few hours. It will get incredibly hot inside the bag and the heat will kill the bugs. Of course doing either of those things will still leave dead bugs in your pantry items, which of course probably isn't highly desirable. After you've cleaned everything out you might still need to fog the house, or possibly use some pheromone traps to reduce their number enough to eliminate the problem. It would be best for me if I could see a picture of some of these bugs, that way I could properly ID them for you. One important difference would be if they are fruit flies, and not a pantry pest. Fruit flies are not going to be drawn to grains and such. Instead they will be after some sort of rotting fruit. Hmmm... just reread your description... look like tiny black beetles with wings.... That could be carpet beetles too. image search black carpet beetles and varied carpet beetles. see if either of those look like what you have. Yep, a picture would definitely help with this one.