[babl] babl: make malloc implementation stability sanity check non-fatal
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl: make malloc implementation stability sanity check non-fatal
- Date: Wed, 2 Jul 2014 04:20:35 +0000 (UTC)
commit d9146bbdd48a9624380884afd55e1c5933844b73
Author: Øyvind Kolås <pippin gimp org>
Date: Wed Jul 2 06:20:13 2014 +0200
babl: make malloc implementation stability sanity check non-fatal
babl/babl-memory.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/babl/babl-memory.c b/babl/babl-memory.c
index 6ceca90..ff171d7 100644
--- a/babl/babl-memory.c
+++ b/babl/babl-memory.c
@@ -91,7 +91,9 @@ functions_sanity (void)
}
else
{
- babl_fatal ("babl memory function(s) attempted switched on the fly");
+ fprintf (stderr, "HMM....\nSomething strange is happening,\n%s function pointer changing between
invocations in babl.\n",
+ first_malloc_used == malloc_f ?
+ first_free_used == free_f ? "malloc and free" : "malloc" : "free");
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]