demos: Clean up objects after cmd buf built
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Wed, 25 Feb 2015 23:55:23 +0000 (16:55 -0700)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 26 Feb 2015 00:15:47 +0000 (17:15 -0700)
demos/tri.c

index 2f5603d..6a1e292 100644 (file)
@@ -194,6 +194,9 @@ static void demo_draw_build_cmd(struct demo *demo)
 
     err = xglEndCommandBuffer(demo->cmd);
     assert(!err);
+
+    xglDestroyObject(graphics_cmd_buf_info.renderPass);
+    xglDestroyObject(rp_info.framebuffer);
 }
 
 static void demo_draw(struct demo *demo)