From bb4c810db30466fdfd5e6676dc244b815397480f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 9 Jul 2025 15:29:00 -0400 Subject: [PATCH] MT#63171 refcount registerApplication Apps registered through registerFactory4App or registerApplication get put into the same name2app map as apps registered from loadAppPlugIn. For consistent references, refcount these as well. Change-Id: I9b616257555533a8ea5847a95b4fa5c0f2e91877 --- core/AmPlugIn.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/AmPlugIn.cpp b/core/AmPlugIn.cpp index a28ee35c..be670327 100644 --- a/core/AmPlugIn.cpp +++ b/core/AmPlugIn.cpp @@ -782,6 +782,7 @@ bool AmPlugIn::registerFactory4App(const string& app_name, AmSessionFactory* f) app_name.c_str()); res = false; } else { + inc_ref(f); name2app.insert(make_pair(app_name,f)); res = true; }