demos/tri: fix a leak
authorChia-I Wu <olv@lunarg.com>
Thu, 16 Apr 2015 09:30:40 +0000 (17:30 +0800)
committerChia-I Wu <olv@lunarg.com>
Thu, 16 Apr 2015 09:32:52 +0000 (17:32 +0800)
03bc341897dc25ed717827eaaef5939b13bb5ec0 missed this line.

demos/tri.c

index 7262ff3..d0fa438 100644 (file)
@@ -263,7 +263,6 @@ static void demo_prepare_buffers(struct demo *demo)
             .arraySize = 1,
         };
 
-        demo->buffers[i].mem = malloc(sizeof(XGL_GPU_MEMORY));
         err = xglWsiX11CreatePresentableImage(demo->device, &presentable_image,
                 &demo->buffers[i].image, &demo->buffers[i].mem);
         assert(!err);