Re: Huge memory leak with texture_from_pixmap
This issue will be resolved in the next driver release.
However, I should note a few things about your test app. Trying to redirect unmapped windows combined with a bug in the X server (it returns the screen pixmap when an app tries to redirect unmapped windows, see freedesktop.org Xorg bug #9129) plus the lack of an error check for multiple GLX drawables referring to one X drawable in the nvidia driver led to this crash.
Fixing any one of the above problems will avoid the X server crashes, but you should really avoid redirecting unmapped windows in your composite manager to get the result you want. Otherwise, you're going to see X errors whenever you run this app on a fixed X server or a fixed version of our driver.