From d839fcb5ba61a57ddd93ebf3da58eb97fa1625f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 18 Oct 2008 17:43:07 +0000 Subject: [PATCH] Memory Leak: Better checking of memory leaks in gtk applications --- CheckMemoryLeak.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CheckMemoryLeak.cpp b/CheckMemoryLeak.cpp index a182aad0b..cf389bfec 100644 --- a/CheckMemoryLeak.cpp +++ b/CheckMemoryLeak.cpp @@ -82,7 +82,18 @@ static AllocType GetAllocationType( const TOKEN *tok2 ) "strdup", "kmalloc", "kzalloc", + "g_new", + "g_new0", + "g_renew", + "g_try_new", + "g_try_new0", + "g_try_renew", "g_malloc", + "g_malloc0", + "g_realloc", + "g_try_malloc", + "g_try_malloc0", + "g_try_realloc", 0}; for ( unsigned int i = 0; mallocfunc[i]; i++ ) {