mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Style nits
This commit is contained in:
parent
e807f04127
commit
c89ed117b6
@ -939,13 +939,15 @@ static void cheevos_free_condition(cheevos_condition_t* condition)
|
|||||||
{
|
{
|
||||||
for (i = 0; i < condition->count; i++)
|
for (i = 0; i < condition->count; i++)
|
||||||
{
|
{
|
||||||
if (condition->condsets[i].conds) {
|
if (condition->condsets[i].conds)
|
||||||
|
{
|
||||||
free(condition->condsets[i].conds);
|
free(condition->condsets[i].conds);
|
||||||
condition->condsets[i].conds = NULL;
|
condition->condsets[i].conds = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (condition->condsets) {
|
if (condition->condsets)
|
||||||
|
{
|
||||||
free(condition->condsets);
|
free(condition->condsets);
|
||||||
condition->condsets = NULL;
|
condition->condsets = NULL;
|
||||||
}
|
}
|
||||||
@ -1005,7 +1007,8 @@ static int cheevos_parse_expression(cheevos_expr_t *expr, const char* mem)
|
|||||||
/* invalid character in expression */
|
/* invalid character in expression */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (expr->terms) {
|
if (expr->terms)
|
||||||
|
{
|
||||||
free(expr->terms);
|
free(expr->terms);
|
||||||
expr->terms = NULL;
|
expr->terms = NULL;
|
||||||
}
|
}
|
||||||
@ -1084,7 +1087,8 @@ error:
|
|||||||
cheevos_free_condition(&lb->start);
|
cheevos_free_condition(&lb->start);
|
||||||
cheevos_free_condition(&lb->cancel);
|
cheevos_free_condition(&lb->cancel);
|
||||||
cheevos_free_condition(&lb->submit);
|
cheevos_free_condition(&lb->submit);
|
||||||
if (lb->value.terms) {
|
if (lb->value.terms)
|
||||||
|
{
|
||||||
free((void*)lb->value.terms);
|
free((void*)lb->value.terms);
|
||||||
lb->value.terms = NULL;
|
lb->value.terms = NULL;
|
||||||
}
|
}
|
||||||
@ -1145,19 +1149,23 @@ static int cheevos_new_cheevo(cheevos_readud_t *ud)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
if (cheevo->title) {
|
if (cheevo->title)
|
||||||
|
{
|
||||||
free((void*)cheevo->title);
|
free((void*)cheevo->title);
|
||||||
cheevo->title = NULL;
|
cheevo->title = NULL;
|
||||||
}
|
}
|
||||||
if (cheevo->description) {
|
if (cheevo->description)
|
||||||
|
{
|
||||||
free((void*)cheevo->description);
|
free((void*)cheevo->description);
|
||||||
cheevo->description = NULL;
|
cheevo->description = NULL;
|
||||||
}
|
}
|
||||||
if (cheevo->author) {
|
if (cheevo->author)
|
||||||
|
{
|
||||||
free((void*)cheevo->author);
|
free((void*)cheevo->author);
|
||||||
cheevo->author = NULL;
|
cheevo->author = NULL;
|
||||||
}
|
}
|
||||||
if (cheevo->badge) {
|
if (cheevo->badge)
|
||||||
|
{
|
||||||
free((void*)cheevo->badge);
|
free((void*)cheevo->badge);
|
||||||
cheevo->badge = NULL;
|
cheevo->badge = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user