[Mesa-dev] [PATCH] main: Don't leak temporary texture rows
Jason Ekstrand
jason at jlekstrand.net
Mon Sep 1 01:36:17 PDT 2014
---
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 f2eb0de..4b8158a 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;
}
--
2.1.0
More information about the mesa-dev
mailing list