aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--backends/evdev.c2
-rw-r--r--backends/jack.c2
-rw-r--r--backends/maweb.c2
-rw-r--r--backends/winmidi.c2
4 files changed, 7 insertions, 1 deletions
diff --git a/backends/evdev.c b/backends/evdev.c
index d2eeba8..659dc77 100644
--- a/backends/evdev.c
+++ b/backends/evdev.c
@@ -519,7 +519,7 @@ static int evdev_shutdown(size_t n, instance** inst){
#endif
data->relative_axes = 0;
free(data->relative_axis);
- free(data);
+ free(inst[u]->impl);
}
fprintf(stderr, "evdev backend shut down\n");
diff --git a/backends/jack.c b/backends/jack.c
index eb53190..42ecee3 100644
--- a/backends/jack.c
+++ b/backends/jack.c
@@ -725,6 +725,8 @@ static int mmjack_shutdown(size_t n, instance** inst){
data->client_name = NULL;
close(data->fd);
data->fd = -1;
+
+ free(inst[u]->impl);
}
fprintf(stderr, "jack backend shut down\n");
diff --git a/backends/maweb.c b/backends/maweb.c
index 8cf201e..4d41f0e 100644
--- a/backends/maweb.c
+++ b/backends/maweb.c
@@ -1044,6 +1044,8 @@ static int maweb_shutdown(size_t n, instance** inst){
free(data->channel);
data->channel = NULL;
data->channels = 0;
+
+ free(inst[u]->impl);
}
fprintf(stderr, "maweb backend shut down\n");
diff --git a/backends/winmidi.c b/backends/winmidi.c
index 090e438..c917ac6 100644
--- a/backends/winmidi.c
+++ b/backends/winmidi.c
@@ -564,6 +564,8 @@ static int winmidi_shutdown(size_t n, instance** inst){
midiOutClose(data->device_out);
data->device_out = NULL;
}
+
+ free(inst[u]->impl);
}
closesocket(backend_config.socket_pair[0]);