config: eet_data_descriptor_free accepts NULL

This commit is contained in:
Boris Faure 2020-09-08 23:10:46 +02:00
parent 6b93176f92
commit ff9b4aacc5
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 6 additions and 10 deletions

View File

@ -200,16 +200,12 @@ config_init(void)
void
config_shutdown(void)
{
if (edd_base)
{
eet_data_descriptor_free(edd_base);
edd_base = NULL;
}
if (edd_color)
{
eet_data_descriptor_free(edd_color);
edd_color = NULL;
}
eet_data_descriptor_free(edd_base);
edd_base = NULL;
eet_data_descriptor_free(edd_color);
edd_color = NULL;
efreet_shutdown();
}