Issues with jpegenc

Hi,
Please apply the patch to 05 sample and try again:

@@ -225,6 +225,19 @@ cleanup:
     }
 
     delete[] out_buf;
+
+    if(src_dma_fd != -1)
+    {
+        ret = NvBufSurf::NvDestroy(src_dma_fd);
+        src_dma_fd = -1;
+    }
+
+    if(dst_dma_fd != -1)
+    {
+        ret = NvBufSurf::NvDestroy(dst_dma_fd);
+        dst_dma_fd = -1;
+    }
+
     delete ctx.in_file;
     delete ctx.out_file;
     /**