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:
parent
72874bfb64
commit
a209da9926
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue