From f848ba523cda3201b74f3987453bbcfd353dafe7 Mon Sep 17 00:00:00 2001 From: Ismo Puustinen Date: Mon, 24 Feb 2014 15:38:54 +0200 Subject: [PATCH] system-controller: fix a premature free(). Change-Id: I44778f9df127e23cf2d0ac95207e1e14c28f99b5 --- src/plugins/system-controller/resource-manager/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/system-controller/resource-manager/audio.c b/src/plugins/system-controller/resource-manager/audio.c index 621eb38..93c0f0d 100644 --- a/src/plugins/system-controller/resource-manager/audio.c +++ b/src/plugins/system-controller/resource-manager/audio.c @@ -589,9 +589,9 @@ static void audio_resource_destroy(mrp_resmgr_audio_t *audio, mrp_htbl_remove(audio->resources, NULL + ar->audioid, false); mrp_list_delete(&ar->link); - mrp_free(ar); mrp_resmgr_notifier_flush_audio_events(audio->resmgr, ar->zoneid); + mrp_free(ar); } } -- 2.7.4