From: Bert Vermeulen Date: Wed, 11 Dec 2013 15:30:25 +0000 (+0100) Subject: Clear decoder list after unloading, not just at exit. X-Git-Tag: libsigrokdecode-0.3.0~199 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=820bf44828745e7d0a7bb0974164acd899c3c113;p=libsigrokdecode.git Clear decoder list after unloading, not just at exit. --- diff --git a/decoder.c b/decoder.c index af988cb..71f4799 100644 --- a/decoder.c +++ b/decoder.c @@ -601,6 +601,8 @@ SRD_API int srd_decoder_unload_all(void) dec = l->data; srd_decoder_unload(dec); } + g_slist_free(pd_list); + pd_list = NULL; return SRD_OK; } diff --git a/srd.c b/srd.c index 1c7f6f9..76e1b34 100644 --- a/srd.c +++ b/srd.c @@ -194,8 +194,6 @@ SRD_API int srd_exit(void) srd_session_destroy((struct srd_session *)l->data); srd_decoder_unload_all(); - g_slist_free(pd_list); - pd_list = NULL; /* Py_Finalize() returns void, any finalization errors are ignored. */ Py_Finalize();