fixed memory leak + added header file to includes in cmake file

fixed memory leak by releasing grabbed data and added a missing line to the cmake file (such that the header file of the pxc grabber is actually added to the project and more importantly also copied when installed)