diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2012-03-20 18:02:45 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2012-03-21 23:20:07 +0100 |
commit | 96c52595ac5cdf7594a639af7ef682411917f52a (patch) | |
tree | 0471cd97613ecd67dacb6ca49f7b3ed195b59f33 | |
parent | 29dad0ac4acd7174cee00556f6104594497fe970 (diff) | |
download | libsigrokdecode-96c52595ac5cdf7594a639af7ef682411917f52a.tar.gz libsigrokdecode-96c52595ac5cdf7594a639af7ef682411917f52a.zip |
srd: srd_exit(): Set pd_list to NULL after freeing.
This will ensure that any subsequent checks for pd_list == NULL work
properly.
-rw-r--r-- | controller.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/controller.c b/controller.c index 4ba4de1..565bc0a 100644 --- a/controller.c +++ b/controller.c @@ -121,6 +121,7 @@ SRD_API int srd_exit(void) srd_decoder_unload_all(); g_slist_free(pd_list); + pd_list = NULL; /* Py_Finalize() returns void, any finalization errors are ignored. */ Py_Finalize(); |