elm: theme: avoid double free in theme version check

If we would have a version below 110 we would run into a double free here.
Just warn and let the freeing happen two lines below.

CID: 1366926
This commit is contained in:
Stefan Schmidt 2016-12-12 16:35:44 +01:00
parent c9e761da54
commit eef89ceb3a
1 changed files with 0 additions and 1 deletions

View File

@ -52,7 +52,6 @@ _elm_theme_item_finalize(Elm_Theme_Files *files,
if (v < 110) // bump this version number when we need to
{
WRN("Selected theme is too old (version = %d, needs >= 110)", v);
free(version);
}
free(version);
}