Skip to content

Commit

Permalink
Comment, minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Dec 1, 2017
1 parent 97ab91c commit 0451594
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions android/src/org/ppsspp/ppsspp/NativeActivity.java
Expand Up @@ -661,6 +661,8 @@ protected void onDestroy() {
mSurfaceView.onDestroy();
mSurfaceView = null;
}
// TODO: Can we ensure that the GL thread has stopped rendering here?
// I've seen crashes that seem to indicate that sometimes it hasn't...
NativeApp.audioShutdown();
if (shuttingDown || isFinishing()) {
unregisterCallbacks();
Expand Down
2 changes: 1 addition & 1 deletion ext/native/ui/screen.cpp
Expand Up @@ -181,7 +181,7 @@ void ScreenManager::shutdown() {
delete x->screen;
stack_.clear();
delete nextScreen_;
nextScreen_ = 0;
nextScreen_ = nullptr;
}

void ScreenManager::push(Screen *screen, int layerFlags) {
Expand Down
4 changes: 2 additions & 2 deletions ext/native/ui/screen.h
Expand Up @@ -42,9 +42,9 @@ namespace Draw {

class Screen {
public:
Screen() : screenManager_(0) { }
Screen() : screenManager_(nullptr) { }
virtual ~Screen() {
screenManager_ = 0;
screenManager_ = nullptr;
}

virtual void onFinish(DialogResult reason) {}
Expand Down

0 comments on commit 0451594

Please sign in to comment.