summaryrefslogtreecommitdiff
path: root/pluma/pluma-debug.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-03 13:58:45 +0300
committerinfirit <[email protected]>2014-12-19 13:56:35 +0100
commitd01f58c9f78c07719c42d1973d57bc4f347481e7 (patch)
tree28bd090067ace897a023fa438945fa6b6e0e9e04 /pluma/pluma-debug.c
parent4a79fb544f5c35843d536d73d60bc10f52ba7d4c (diff)
downloadpluma-d01f58c9f78c07719c42d1973d57bc4f347481e7.tar.bz2
pluma-d01f58c9f78c07719c42d1973d57bc4f347481e7.tar.xz
don't leak memory
Diffstat (limited to 'pluma/pluma-debug.c')
-rw-r--r--pluma/pluma-debug.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pluma/pluma-debug.c b/pluma/pluma-debug.c
index 510bfcb5..b35376b2 100644
--- a/pluma/pluma-debug.c
+++ b/pluma/pluma-debug.c
@@ -107,6 +107,7 @@ pluma_debug_message (PlumaDebugSection section,
{
#ifdef ENABLE_PROFILING
gdouble seconds;
+ g_return_if_fail (timer != NULL);
#endif
va_list args;
@@ -119,8 +120,6 @@ pluma_debug_message (PlumaDebugSection section,
va_end (args);
#ifdef ENABLE_PROFILING
- g_return_if_fail (timer != NULL);
-
seconds = g_timer_elapsed (timer, NULL);
g_print ("[%f (%f)] %s:%d (%s) %s\n",
seconds, seconds - last, file, line, function, msg);