vc4: 0-initialize the screen again.
authorEric Anholt <eric@anholt.net>
Mon, 15 Dec 2014 17:08:09 +0000 (09:08 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 15 Dec 2014 22:28:22 +0000 (14:28 -0800)
I typoed this when rebasing the memory leak fixes.

src/gallium/drivers/vc4/vc4_screen.c

index 7a1840aaf4c8265159201d0b6cb2caefccaeff5a..aa5cbfa2348c6088be0b94b7338b2411e7bab5ab 100644 (file)
@@ -403,7 +403,7 @@ vc4_screen_is_format_supported(struct pipe_screen *pscreen,
 struct pipe_screen *
 vc4_screen_create(int fd)
 {
-        struct vc4_screen *screen = ralloc(NULL, struct vc4_screen);
+        struct vc4_screen *screen = rzalloc(NULL, struct vc4_screen);
         struct pipe_screen *pscreen;
 
         pscreen = &screen->base;