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) {
66
66
sizeof (FirebaseAnalytics_WindowsDllHash));
67
67
68
68
if (g_analytics_module) {
69
- LogInfo (" Loaded Google Analytics module." );
70
69
int num_loaded = FirebaseAnalytics_LoadDynamicFunctions (
71
70
g_analytics_module); // Ensure g_analytics_module is used
72
71
if (num_loaded < FIREBASE_ANALYTICS_DYNAMIC_FUNCTION_COUNT) {
73
72
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 ." ,
76
75
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." );
77
81
}
78
82
}
79
83
}
You can’t perform that action at this time.
0 commit comments