I use this code under Windows 2000:
hBrushTest = CreateSolidBrush( RGB(0,0,0) );
DeleteObject( hBrushTest );
After the creation of the brush, the GDI count in the task manager (when you show that column) increases by one. Unfortunately, the count doesn't decrease after the deletion of the brush.
What's wrong with this picture???