Mesa (master): main: Don't leak temporary texture rows
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Tue Sep 2 22:51:43 UTC 2014
Module: Mesa
Branch: master
Commit: 454aab45ef382c0a3e262c8b417ecc846881c1e9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=454aab45ef382c0a3e262c8b417ecc846881c1e9
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Mon Sep 1 01:33:36 2014 -0700
main: Don't leak temporary texture rows
Reviewed-by: Dave Airlie <airlied at gmail.com>
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/mesa/main/texstore.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index d2aba8b..f913e42 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;
}
More information about the mesa-commit
mailing list