summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-03 14:51:38 +0300
committerinfirit <[email protected]>2014-12-23 13:57:32 +0100
commit2c409777d74acf08f83da031dc589bd438a45220 (patch)
tree188ea3d2e7aa87d4d946a00d8723cb58060e47ca /src
parent6f20a4ebbe6a37be428e72ea0d3286f61671c8ec (diff)
downloadeom-2c409777d74acf08f83da031dc589bd438a45220.tar.bz2
eom-2c409777d74acf08f83da031dc589bd438a45220.tar.xz
don't leak memory on g_return_if_fail
Diffstat (limited to 'src')
-rw-r--r--src/eom-debug.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eom-debug.c b/src/eom-debug.c
index 0523909..4bd8c87 100644
--- a/src/eom-debug.c
+++ b/src/eom-debug.c
@@ -108,6 +108,7 @@ eom_debug_message (EomDebug section,
{
#ifdef ENABLE_PROFILING
gdouble seconds;
+ g_return_if_fail (timer != NULL);
#endif
va_list args;
@@ -120,8 +121,6 @@ eom_debug_message (EomDebug 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);