aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-12-11 23:33:27 +0100
committercbdev <cb@cbcdn.com>2019-12-11 23:33:27 +0100
commit763f6d6a434b6e5a9d166cb538857d0cac5fa29e (patch)
tree01ab43466f46338e93706e1a72f207d73daffa57
parentf6d6eefe9bb9934f4fa3e665734d746f02471cdb (diff)
downloadmidimonster-763f6d6a434b6e5a9d166cb538857d0cac5fa29e.tar.gz
midimonster-763f6d6a434b6e5a9d166cb538857d0cac5fa29e.tar.bz2
midimonster-763f6d6a434b6e5a9d166cb538857d0cac5fa29e.zip
Release instance implementation data allocation
-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]);