From: Corey Farrell Date: Thu, 16 Nov 2017 18:57:23 +0000 (-0500) Subject: main/asterisk.c: Remove silly usage of RAII_VAR. X-Git-Tag: 13.20.0-rc1~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e5d5b2ce219f09f6aca797b186c0199f904a99d;p=thirdparty%2Fasterisk.git main/asterisk.c: Remove silly usage of RAII_VAR. Change-Id: I7e2996397fbd3c3a6a69dd805c38448ddfc34ae9 --- diff --git a/main/asterisk.c b/main/asterisk.c index d2230dc4d6..870e5510ac 100644 --- a/main/asterisk.c +++ b/main/asterisk.c @@ -1160,11 +1160,12 @@ int ast_pbx_uuid_get(char *pbx_uuid, int length) static void publish_fully_booted(void) { - RAII_VAR(struct ast_json *, json_object, NULL, ast_json_unref); + struct ast_json *json_object; json_object = ast_json_pack("{s: s}", "Status", "Fully Booted"); ast_manager_publish_event("FullyBooted", EVENT_FLAG_SYSTEM, json_object); + ast_json_unref(json_object); } static void ast_run_atexits(int run_cleanups)