Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/pxScene2d/src/pxWayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ pxWayland::~pxWayland()
WstCompositorSetClientStatusCallback(mWCtx, NULL, NULL);
terminateClient();
WstCompositorDestroy(mWCtx);
mWCtx = NULL;
//Adding mClientTerminated flag check because SIGKILL has to be sent to
//the Process only when it got SIGTERM from terminateClient().
if (mClientTerminated && (mClientPID > 0) && (0 == kill(mClientPID, 0)))
Expand All @@ -143,11 +144,10 @@ pxWayland::~pxWayland()
mClientTerminated = false;
}
mClientPID= -1;
mWCtx = NULL;
}
if (gUIThreadQueue)
{
gUIThreadQueue->removeAllTasksForObject(this);
gUIThreadQueue->removeAllTasksForObject(this, onRemoveTask);
}
}

Expand Down