aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 6a04e5071..c8290e3ff 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -92,6 +92,7 @@
#ifdef ANDROID
#include "java/Global.hxx"
#include "java/File.hxx"
+#include "android/Environment.hxx"
#include "org_musicpd_Bridge.h"
#endif
@@ -679,8 +680,11 @@ Java_org_musicpd_Bridge_run(JNIEnv *env, jclass)
{
Java::Init(env);
Java::File::Initialise(env);
+ Environment::Initialise(env);
mpd_main(0, nullptr);
+
+ Environment::Deinitialise(env);
}
#endif