Commit 563db580 authored by Max Kellermann's avatar Max Kellermann

fs/Charset: add DeinitFSCharset()

parent 125daea1
...@@ -722,6 +722,8 @@ static int mpd_main_after_fork(struct options options) ...@@ -722,6 +722,8 @@ static int mpd_main_after_fork(struct options options)
mapper_finish(); mapper_finish();
#endif #endif
DeinitFS();
delete instance->partition; delete instance->partition;
command_finish(); command_finish();
decoder_plugin_deinit_all(); decoder_plugin_deinit_all();
......
...@@ -88,6 +88,11 @@ SetFSCharset(const char *charset, Error &error) ...@@ -88,6 +88,11 @@ SetFSCharset(const char *charset, Error &error)
#endif #endif
void
DeinitFSCharset()
{
}
const char * const char *
GetFSCharset() GetFSCharset()
{ {
......
...@@ -41,6 +41,9 @@ GetFSCharset(); ...@@ -41,6 +41,9 @@ GetFSCharset();
bool bool
SetFSCharset(const char *charset, Error &error); SetFSCharset(const char *charset, Error &error);
void
DeinitFSCharset();
/** /**
* Convert the path to UTF-8. * Convert the path to UTF-8.
* Returns empty string on error. * Returns empty string on error.
......
...@@ -61,3 +61,11 @@ ConfigureFS(Error &error) ...@@ -61,3 +61,11 @@ ConfigureFS(Error &error)
return true; return true;
#endif #endif
} }
void
DeinitFS()
{
#ifdef HAVE_FS_CHARSET
DeinitFSCharset();
#endif
}
...@@ -30,4 +30,7 @@ class Error; ...@@ -30,4 +30,7 @@ class Error;
bool bool
ConfigureFS(Error &error); ConfigureFS(Error &error);
void
DeinitFS();
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment