From 0ca2c2b0e74c380aafa2a976dfb18050e5ec8098 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 22 Mar 2013 10:28:15 -0500 Subject: [PATCH] print message before destroying obj --- src/mod/languages/mod_lua/freeswitch_lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/languages/mod_lua/freeswitch_lua.cpp b/src/mod/languages/mod_lua/freeswitch_lua.cpp index f4d5291db9..34edfaea93 100644 --- a/src/mod/languages/mod_lua/freeswitch_lua.cpp +++ b/src/mod/languages/mod_lua/freeswitch_lua.cpp @@ -366,8 +366,8 @@ Dbh::~Dbh() bool Dbh::release() { if (dbh) { - switch_cache_db_release_db_handle(&dbh); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "DBH handle %p released.\n", (void *) dbh); + switch_cache_db_release_db_handle(&dbh); return true; }