From: Marc Schink Date: Mon, 5 Aug 2013 12:40:23 +0000 (+0200) Subject: Remove datafeed callbacks to prevent memory leak. X-Git-Tag: sigrok-cli-0.5.0~86 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1e484911c49863a26e6c85f071bced106db8cb5e;p=sigrok-cli.git Remove datafeed callbacks to prevent memory leak. --- diff --git a/sigrok-cli.c b/sigrok-cli.c index 48a409d..0daf79e 100644 --- a/sigrok-cli.c +++ b/sigrok-cli.c @@ -1741,6 +1741,7 @@ static void run_session(void) if (opt_continuous) clear_anykey(); + sr_session_datafeed_callback_remove_all(); sr_session_destroy(); g_slist_free(devices);