diff options
| author | 2025-11-22 13:46:29 +0100 | |
|---|---|---|
| committer | 2025-11-22 13:46:29 +0100 | |
| commit | f614e0cb02deeea08787e1e50853dafa4f789748 (patch) | |
| tree | ea2fec9af87477f4d487a07a507f8ad2a16abfd5 | |
| parent | 077963174182b6f71f8d8d4e373482addcf4ff3d (diff) | |
| download | libimobiledevice-glue-f614e0cb02deeea08787e1e50853dafa4f789748.tar.gz libimobiledevice-glue-f614e0cb02deeea08787e1e50853dafa4f789748.tar.bz2 | |
Add atexit call to (empty) deinit function to prevent stripping off initializer code
| -rw-r--r-- | src/glue.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -26,6 +26,8 @@ #include <windows.h> #endif +#include <stdlib.h> + #include "common.h" #include "libimobiledevice-glue/thread.h" @@ -58,10 +60,16 @@ extern void term_colors_init(); +static void internal_glue_deinit(void) +{ + // NO-OP +} + INITIALIZER(internal_glue_init) { socket_init(); term_colors_init(); + atexit(internal_glue_deinit); } const char* libimobiledevice_glue_version() |
