0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-02-18 09:40:12 +01:00

modules/magick: Call InitializeMagick() first; remove DestroyMagickResources()

Fixes #96.
This commit is contained in:
Jason Volk 2019-07-30 17:23:20 -07:00
parent 72874bfb64
commit a209da9926

View file

@ -155,11 +155,11 @@ ircd::magick::init()
long(version_abi),
};
InitializeMagick(nullptr);
MagickAllocFunctions(handle_free, handle_malloc, handle_realloc);
SetFatalErrorHandler(handle_fatal);
SetErrorHandler(handle_error);
SetWarningHandler(handle_warning);
InitializeMagick(nullptr);
SetLogMethod(handle_log);
//SetLogEventMask("all"); // Pollutes stderr :/ can't fix
SetMonitorHandler(handle_progress);
@ -196,7 +196,6 @@ ircd::magick::fini()
return !call_mutex.locked();
});
DestroyMagickResources();
DestroyMagick();
}