summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-09-01 01:33:36 -0700
committerJason Ekstrand <[email protected]>2014-09-02 15:50:27 -0700
commit454aab45ef382c0a3e262c8b417ecc846881c1e9 (patch)
tree50cf8397a8767caca3e24c9ad3b3c6cd5957783c /src
parent8380b894ad26f427c85fefadd4a9245bde3bca7e (diff)
main: Don't leak temporary texture rows
Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texstore.c4
1 files changed, 4 insertions, 0 deletions
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;
}