Blame SOURCES/babl-0.1.10-memory.patch

d71cf7
diff -urNp old/babl/babl-memory.c new/babl/babl-memory.c
d71cf7
--- old/babl/babl-memory.c	2017-10-06 09:07:51.085178917 +0200
d71cf7
+++ new/babl/babl-memory.c	2017-10-06 09:14:08.186524320 +0200
d71cf7
@@ -84,14 +84,19 @@ functions_sanity (void)
d71cf7
   if (first_malloc_used != malloc_f ||
d71cf7
       first_free_used != free_f)
d71cf7
     {
d71cf7
+      static int displayed = 0;
d71cf7
+
d71cf7
       if (first_malloc_used == NULL)
d71cf7
         {
d71cf7
           first_malloc_used = malloc_f;
d71cf7
           first_free_used   = free_f;
d71cf7
         }
d71cf7
-      else
d71cf7
+      else if (!displayed)
d71cf7
         {
d71cf7
-          babl_fatal ("babl memory function(s) attempted switched on the fly");
d71cf7
+          fprintf (stderr, "HMM....\nSomething strange is happening,\n%s function pointer changing between invocations in babl.\n",
d71cf7
+                  first_malloc_used == malloc_f ? "free" :
d71cf7
+                  (first_free_used == free_f ? "malloc" : "malloc and free"));
d71cf7
+          displayed = 1;
d71cf7
         }
d71cf7
     }
d71cf7
 }