]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjproject: Fix cleanup of buildopts vector.
authorCorey Farrell <git@cfware.com>
Tue, 10 Oct 2017 03:51:03 +0000 (23:51 -0400)
committerCorey Farrell <git@cfware.com>
Tue, 10 Oct 2017 04:17:43 +0000 (23:17 -0500)
ASTERISK-27306

Change-Id: I3bed0edf3f55b1d4adcbabb25ec14f11dc766c72

res/res_pjproject.c

index e02515b48318d6b95d2f35969c6a91ee8f396340..fa99919abbbf24ef50d294eea671f129d9515d08 100644 (file)
@@ -546,7 +546,7 @@ static int unload_module(void)
        pj_log_set_log_func(log_cb_orig);
        pj_log_set_decor(decor_orig);
 
-       AST_VECTOR_REMOVE_CMP_UNORDERED(&buildopts, NULL, NOT_EQUALS, ast_free);
+       AST_VECTOR_CALLBACK_VOID(&buildopts, ast_free);
        AST_VECTOR_FREE(&buildopts);
 
        ast_debug(3, "Stopped PJPROJECT logging to Asterisk logger\n");