X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/25f2b8ef47071b00e26c0a1ba393e81f5404232e..c2cf03332f51a9fa992220124635f737399fba91:/src/download.c?ds=inline diff --git a/src/download.c b/src/download.c index d771483f..ef75b02f 100644 --- a/src/download.c +++ b/src/download.c @@ -50,6 +50,7 @@ #include "curl_download.h" #include "preferences.h" #include "globals.h" +#include "vik_compat.h" static gboolean check_file_first_line(FILE* f, gchar *patterns[]) { @@ -135,8 +136,12 @@ void a_download_init (void) VikLayerParamData tmp; tmp.u = VIK_CONFIG_DEFAULT_TILE_AGE / 86400; // Now in days a_preferences_register(prefs, tmp, VIKING_PREFERENCES_GROUP_KEY); + file_list_mutex = vik_mutex_new(); +} - file_list_mutex = g_mutex_new(); +void a_download_uninit (void) +{ + vik_mutex_free(file_list_mutex); } static gboolean lock_file(const char *fn)