fs/Charset: add DeinitFSCharset()

This commit is contained in:
Max Kellermann 2014-11-29 23:35:18 +01:00
parent 125daea16a
commit 563db580ae
5 changed files with 21 additions and 0 deletions

View File

@ -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();

View File

@ -88,6 +88,11 @@ SetFSCharset(const char *charset, Error &error)
#endif #endif
void
DeinitFSCharset()
{
}
const char * const char *
GetFSCharset() GetFSCharset()
{ {

View File

@ -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.

View File

@ -61,3 +61,11 @@ ConfigureFS(Error &error)
return true; return true;
#endif #endif
} }
void
DeinitFS()
{
#ifdef HAVE_FS_CHARSET
DeinitFSCharset();
#endif
}

View File

@ -30,4 +30,7 @@ class Error;
bool bool
ConfigureFS(Error &error); ConfigureFS(Error &error);
void
DeinitFS();
#endif #endif