aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-27 16:49:53 -0400
committerDavid Robillard <d@drobilla.net>2022-05-27 16:49:53 -0400
commitf313731a4fcf4e18445bc23b51f939fb23ffb6d4 (patch)
treec470fa66c334f8e28acc2a7a8d914d23b10303de /src
parentd2fcfe079163351c093fa4f41760f6f0f19a6390 (diff)
downloadjalv-f313731a4fcf4e18445bc23b51f939fb23ffb6d4.tar.gz
jalv-f313731a4fcf4e18445bc23b51f939fb23ffb6d4.tar.bz2
jalv-f313731a4fcf4e18445bc23b51f939fb23ffb6d4.zip
Remove redundant conditionals
Diffstat (limited to 'src')
-rw-r--r--src/jalv.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/jalv.c b/src/jalv.c
index e474433..779bce3 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -1347,12 +1347,8 @@ jalv_close(Jalv* const jalv)
}
free(jalv->controls.controls);
- if (jalv->sratom) {
- sratom_free(jalv->sratom);
- }
- if (jalv->ui_sratom) {
- sratom_free(jalv->ui_sratom);
- }
+ sratom_free(jalv->sratom);
+ sratom_free(jalv->ui_sratom);
lilv_uis_free(jalv->uis);
lilv_world_free(jalv->world);