void cleanup_encodings()
{
hash_free(encodings);
+}
+
+void cleanup_gconv_path()
+{
/* Clean up environment */
putenv(GCONV_SEARCH_PATH);
if (new_gconv_path)
- free(new_gconv_path);
+ free(new_gconv_path);
}
/* Let function be called before main() */
abort();
}
}
+ if (init_called && atexit(cleanup_gconv_path) != 0) {
+ gedcom_warning(_("Could not register path cleanup function"));
+ }
}
void init_encodings()