summaryrefslogtreecommitdiff
path: root/src/shared/leaktrace.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-09-28 21:13:57 +0200
committerTannin <devnull@localhost>2013-09-28 21:13:57 +0200
commit47293827bbd92ce227e5188c10b66deb9f85d5bf (patch)
treec8e9f34dc3105a3e73b41f8b2fb58d58439b06e0 /src/shared/leaktrace.h
parent0a3169b808cf2b84ae7c77fd6cb0a7b0aa9a8df3 (diff)
- download progress is now visible in task bar
- esp-tooltip now lists all masters, highlighting the missing ones - python plugin will now report a problem if the path contains a semicolon - leak detection now (somewaht) works around the fact that we don't always get a stack trace - bugfix: mod meta-file is now reliably created if it was missing - bugfix: parser for nxm-links didn't handle numbers in the mod name - bugfix: small memory leak
Diffstat (limited to 'src/shared/leaktrace.h')
-rw-r--r--src/shared/leaktrace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/leaktrace.h b/src/shared/leaktrace.h
index 78764260..4985925e 100644
--- a/src/shared/leaktrace.h
+++ b/src/shared/leaktrace.h
@@ -4,14 +4,14 @@
namespace LeakTrace {
-void TraceAlloc(void *ptr);
+void TraceAlloc(void *ptr, const char *functionName, int line);
void TraceDealloc(void *ptr);
};
#ifdef TRACE_LEAKS
-#define LEAK_TRACE LeakTrace::TraceAlloc(this)
+#define LEAK_TRACE LeakTrace::TraceAlloc(this, __FUNCTION__, __LINE__)
#define LEAK_UNTRACE LeakTrace::TraceDealloc(this)
#else // TRACE_LEAKS