Hi, BigBen! Thank you for your advice!
I had compiled the "Minimum" sample under VCE 3.0 and had had the same result. Then I decided to watch how the GAPI application behaves under the same conditions, and compiled the "GapiApp" sample. And again saw the memory leakage.
So I guess the problem has nothing to do with Phal. Maybe it's a conflict between a vga device and "vga unaware" application compiled under vce 4.0. Or anything else