mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
gah! the putenv() stuff was not causing memleaks. Only 2 memleaks after all (1 serious, 1 minor). Both did sum up in time
This commit is contained in:
@@ -246,13 +246,11 @@ SetupEnvironment(WScreen *scr)
|
||||
snprintf(buf, sizeof(buf), ".%i", scr->screen);
|
||||
strcat(tmp, buf);
|
||||
putenv(tmp);
|
||||
wfree(tmp);
|
||||
}
|
||||
tmp = wmalloc(60);
|
||||
snprintf(tmp, 60, "WRASTER_COLOR_RESOLUTION%i=%i", scr->screen,
|
||||
scr->rcontext->attribs->colors_per_channel);
|
||||
putenv(tmp);
|
||||
wfree(tmp);
|
||||
}
|
||||
|
||||
|
||||
@@ -597,7 +595,6 @@ main(int argc, char **argv)
|
||||
|
||||
str = wstrconcat("WMAKER_BIN_NAME=", argv[0]);
|
||||
putenv(str);
|
||||
wfree(str);
|
||||
|
||||
ArgCount = argc;
|
||||
Arguments = argv;
|
||||
@@ -785,7 +782,6 @@ main(int argc, char **argv)
|
||||
snprintf(str, len, "DISPLAY=%s", DisplayName);
|
||||
}
|
||||
putenv(str);
|
||||
wfree(str);
|
||||
|
||||
#ifdef DEBUG
|
||||
if (doSync)
|
||||
|
||||
Reference in New Issue
Block a user