Skip to content

Commit

Permalink
Shut down thread first
Browse files Browse the repository at this point in the history
  • Loading branch information
makuke1234 committed May 16, 2022
1 parent 2f0f1aa commit ca785e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ int PongWnd_msgLoop(PongWnd_t * pong)
}
void PongWnd_free(PongWnd_t * restrict pong)
{
PongLogic_free(&pong->logic);

if (pong->wndTitle != NULL)
{
free(pong->wndTitle);
Expand All @@ -407,8 +409,6 @@ void PongWnd_free(PongWnd_t * restrict pong)
PongWnd_freeAssets(pong);
dxSafeRelease(&pong->dx.wFactory);
dxSafeRelease((IUnknown **)&pong->dx.factory);

PongLogic_free(&pong->logic);
}

FLOAT PongWnd_dipx(const PongWnd_t * restrict pong, FLOAT x)
Expand Down

0 comments on commit ca785e0

Please sign in to comment.