Module: Mesa
Branch: master
Commit: 454aab45ef382c0a3e262c8b417ecc846881c1e9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=454aab45ef382c0a3e262c8b417ecc846881c1e9

Author: Jason Ekstrand <[email protected]>
Date:   Mon Sep  1 01:33:36 2014 -0700

main: Don't leak temporary texture rows

Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>

---

 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;
 }
 

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

Reply via email to