|
@@ -148,6 +148,9 @@ struct App : implements<App, IFrameworkViewSource, IFrameworkView>
|
|
// Run the tests
|
|
// Run the tests
|
|
int rv = Context().run();
|
|
int rv = Context().run();
|
|
|
|
|
|
|
|
+ // Unregisters all types with the factory and cleans up the default material
|
|
|
|
+ UnregisterTypes();
|
|
|
|
+
|
|
// Destroy the factory
|
|
// Destroy the factory
|
|
delete Factory::sInstance;
|
|
delete Factory::sInstance;
|
|
Factory::sInstance = nullptr;
|
|
Factory::sInstance = nullptr;
|
|
@@ -202,6 +205,9 @@ int main(int argc, char** argv)
|
|
|
|
|
|
int rv = Context(argc, argv).run();
|
|
int rv = Context(argc, argv).run();
|
|
|
|
|
|
|
|
+ // Unregisters all types with the factory and cleans up the default material
|
|
|
|
+ UnregisterTypes();
|
|
|
|
+
|
|
// Destroy the factory
|
|
// Destroy the factory
|
|
delete Factory::sInstance;
|
|
delete Factory::sInstance;
|
|
Factory::sInstance = nullptr;
|
|
Factory::sInstance = nullptr;
|
|
@@ -316,6 +322,9 @@ void AndroidInitialize(android_app *inApp)
|
|
ANativeWindow_unlockAndPost(inApp->window);
|
|
ANativeWindow_unlockAndPost(inApp->window);
|
|
ANativeWindow_release(inApp->window);
|
|
ANativeWindow_release(inApp->window);
|
|
|
|
|
|
|
|
+ // Unregisters all types with the factory and cleans up the default material
|
|
|
|
+ UnregisterTypes();
|
|
|
|
+
|
|
// Destroy the factory
|
|
// Destroy the factory
|
|
delete Factory::sInstance;
|
|
delete Factory::sInstance;
|
|
Factory::sInstance = nullptr;
|
|
Factory::sInstance = nullptr;
|