]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
print message before destroying obj
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 22 Mar 2013 15:28:15 +0000 (10:28 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 22 Mar 2013 15:28:15 +0000 (10:28 -0500)
src/mod/languages/mod_lua/freeswitch_lua.cpp

index f4d5291db9d96e1580819cac647d0523c18d3c76..34edfaea93f7b02ef2b4c4aebc6a79cee45d50ab 100644 (file)
@@ -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;
   }