an update version of patch in comment #44 has been commited.
the patch in comment #47 has problem with some compiz plug-in, and it's not a must to fix this memory leak issue, but the compiz fix is needed which is described in comment #48.
I can't reproduce this issue any more on 945GM with fix in compiz, my configuration is:
Libdrm (master)2fa2db138ba989bfa1a8cd9ab66d83fb7369249e
Mesa (master)77506dac8e81e9548a7e9680ce367175fe5747af
Xserver (master)14581afb474552716c02ca15220ca7050123c375
Xf86_video_intel (master)b5cd2130f97591f4a387db1b98c940c30bc6404c
Kernel (for-linus)0e7ddf7eeeef5aea85412120539ab5369577faeb
an update version of patch in comment #44 has been commited.
the patch in comment #47 has problem with some compiz plug-in, and it's not a must to fix this memory leak issue, but the compiz fix is needed which is described in comment #48.
I can't reproduce this issue any more on 945GM with fix in compiz, my configuration is: 2fa2db138ba989b fa1a8cd9ab66d83 fb7369249e 77506dac8e81e95 48a7e9680ce3671 75fe5747af 14581afb4745527 16c02ca15220ca7 050123c375 b5cd2130f97591f 4a387db1b98c940 c30bc6404c 0e7ddf7eeeef5ae a85412120539ab5 369577faeb
Libdrm (master)
Mesa (master)
Xserver (master)
Xf86_video_intel (master)
Kernel (for-linus)