NVFBC Capture with Full Screen Heap leak

Heap leak will happen when I changed the desktop resolution every time,and it will not release until the process exited.
the sdk version is 2.3.7 final
the driver version is 354.13_grid_kepler_win8_win7_64bit_internation
the desktop system is win7_sp1

Anyone can help me?

When you do a mode set (changing of the desktop resolution), you also need to re-create the D3D device and also recreate the NvFBC object. You may need to check for device-lost events, release the devices, and then recreate them.

thank u ,