File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -66,14 +66,18 @@ void Initialize(const App& app) {
6666 sizeof (FirebaseAnalytics_WindowsDllHash));
6767
6868 if (g_analytics_module) {
69- LogInfo (" Loaded Google Analytics module." );
7069 int num_loaded = FirebaseAnalytics_LoadDynamicFunctions (
7170 g_analytics_module); // Ensure g_analytics_module is used
7271 if (num_loaded < FIREBASE_ANALYTICS_DYNAMIC_FUNCTION_COUNT) {
7372 LogWarning (
74- " Only loaded %d out of %d expected functions from the Google "
75- " Analytics module." ,
73+ " Analytics: Failed to load functions from Google Analytics "
74+ " module (%d out of %d loaded), reverting to stubs ." ,
7675 num_loaded, FIREBASE_ANALYTICS_DYNAMIC_FUNCTION_COUNT);
76+ FirebaseAnalytics_UnloadDynamicFunctions ();
77+ FreeLibrary (g_analytics_module);
78+ g_analytics_module = 0 ;
79+ } else {
80+ LogInfo (" Analytics: Loaded Google Analytics module." );
7781 }
7882 }
7983 }
You can’t perform that action at this time.
0 commit comments