summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-22 14:31:13 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-22 14:31:13 +0300
commit0470de0e450b7623254967593fb524db781c44e2 (patch)
tree6f4897a43531dcde8d2cebedda8bc21ad0034da4 /src
parent2c1d95177059c0486fca98ad1d43cdc0df7c5552 (diff)
Cleanup
Very minor memory leaks.
Diffstat (limited to 'src')
-rw-r--r--src/app.c4
-rw-r--r--src/macos.m1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index b6a73c55..36930697 100644
--- a/src/app.c
+++ b/src/app.c
@@ -798,8 +798,8 @@ static void init_App_(iApp *d, int argc, char **argv) {
798 init_SortedArray(&d->tickers, sizeof(iTicker), cmp_Ticker_); 798 init_SortedArray(&d->tickers, sizeof(iTicker), cmp_Ticker_);
799 d->lastTickerTime = SDL_GetTicks(); 799 d->lastTickerTime = SDL_GetTicks();
800 d->elapsedSinceLastTicker = 0; 800 d->elapsedSinceLastTicker = 0;
801 d->commandEcho = checkArgument_CommandLine(&d->args, "echo;E") != NULL; 801 d->commandEcho = iClob(checkArgument_CommandLine(&d->args, "echo;E")) != NULL;
802 d->forceSoftwareRender = checkArgument_CommandLine(&d->args, "sw") != NULL; 802 d->forceSoftwareRender = iClob(checkArgument_CommandLine(&d->args, "sw")) != NULL;
803 d->initialWindowRect = init_Rect(-1, -1, 900, 560); 803 d->initialWindowRect = init_Rect(-1, -1, 900, 560);
804#if defined (iPlatformMsys) 804#if defined (iPlatformMsys)
805 /* Must scale by UI scaling factor. */ 805 /* Must scale by UI scaling factor. */
diff --git a/src/macos.m b/src/macos.m
index 784a8612..a4f2b079 100644
--- a/src/macos.m
+++ b/src/macos.m
@@ -399,6 +399,7 @@ void registerURLHandler_MacOS(void) {
399 andSelector:@selector(handleURLEvent:withReplyEvent:) 399 andSelector:@selector(handleURLEvent:withReplyEvent:)
400 forEventClass:kInternetEventClass 400 forEventClass:kInternetEventClass
401 andEventID:kAEGetURL]; 401 andEventID:kAEGetURL];
402 [handler release];
402} 403}
403 404
404void setupApplication_MacOS(void) { 405void setupApplication_MacOS(void) {