Module: Mesa
Branch: gallium-0.1
Commit: 1e35d92953207dd5e40be4954ccc9015913f7f06
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e35d92953207dd5e40be4954ccc9015913f7f06

Author: José Fonseca <[EMAIL PROTECTED]>
Date:   Thu Nov 13 20:34:10 2008 +0900

gallium: State when there are no memory leaks detected.

---

 src/gallium/auxiliary/util/p_debug_mem.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/p_debug_mem.c 
b/src/gallium/auxiliary/util/p_debug_mem.c
index 9511479..250fd60 100644
--- a/src/gallium/auxiliary/util/p_debug_mem.c
+++ b/src/gallium/auxiliary/util/p_debug_mem.c
@@ -265,6 +265,9 @@ debug_memory_end(unsigned long start_no)
    size_t total_size = 0;
    struct list_head *entry;
 
+   if(start_no == last_no)
+      return;
+
    entry = list.prev;
    for (; entry != &list; entry = entry->prev) {
       struct debug_memory_header *hdr;
@@ -302,4 +305,7 @@ debug_memory_end(unsigned long start_no)
       debug_printf("Total of %u KB of system memory apparently leaked\n",
                   (total_size + 1023)/1024);
    }
+   else {
+      debug_printf("No memory leaks detected.\n");
+   }
 }

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

Reply via email to