forked from enlightenment/efl
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:
parent
c9e761da54
commit
eef89ceb3a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue