This is the private ctor, as such use the private dtor if we fail at any
point. Noticed while casing wgl_window_destroy() related bug in piglit.

Signed-off-by: Emil Velikov <[email protected]>
---
 src/waffle/wgl/wgl_window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/waffle/wgl/wgl_window.c b/src/waffle/wgl/wgl_window.c
index 43a49a4..a557c2f 100644
--- a/src/waffle/wgl/wgl_window.c
+++ b/src/waffle/wgl/wgl_window.c
@@ -134,7 +134,7 @@ wgl_window_priv_create(struct wcore_platform *wc_plat,
     return &self->wcore;
 
 error:
-    wgl_window_destroy(&self->wcore);
+    wgl_window_priv_destroy(&self->wcore);
     return NULL;
 }
 
-- 
2.0.2

_______________________________________________
waffle mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/waffle

Reply via email to