From 454aab45ef382c0a3e262c8b417ecc846881c1e9 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 1 Sep 2014 01:33:36 -0700 Subject: main: Don't leak temporary texture rows Reviewed-by: Dave Airlie Reviewed-by: Anuj Phogat --- src/mesa/main/texstore.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/main/texstore.c') diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index d2aba8ba1e3..f913e42d315 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -1634,6 +1634,8 @@ texstore_via_float(TEXSTORE_PARAMS) } } + free(tmp_row); + return GL_TRUE; } @@ -1702,6 +1704,8 @@ texstore_rgba_integer(TEXSTORE_PARAMS) } } + free(tmp_row); + return GL_TRUE; } -- cgit v1.2.3