xresources: munmap_chunck(): Invalid Pointer when xrdb has not been loaded, ref. #2

This commit is contained in:
bakkeby 2021-03-05 15:28:45 +01:00
parent 088a083524
commit e8da68a1a0

View File

@ -1222,9 +1222,6 @@ setup(void)
#else #else
scheme[j] = drw_scm_create(drw, (const char**)colors[j], 2); scheme[j] = drw_scm_create(drw, (const char**)colors[j], 2);
#endif // ALPHA_PATCH #endif // ALPHA_PATCH
for (j = 0; j < SchemeOut; ++j)
for (i = 0; i < 2; ++i)
free(colors[j][i]);
#else #else
for (j = 0; j < SchemeLast; j++) for (j = 0; j < SchemeLast; j++)
#if ALPHA_PATCH #if ALPHA_PATCH
@ -1697,8 +1694,6 @@ main(int argc, char *argv[])
#else #else
if (!drw_fontset_create(drw, (const char**)fonts, LENGTH(fonts))) if (!drw_fontset_create(drw, (const char**)fonts, LENGTH(fonts)))
die("no fonts could be loaded."); die("no fonts could be loaded.");
free(fonts[0]);
#endif // PANGO_PATCH #endif // PANGO_PATCH
#elif PANGO_PATCH #elif PANGO_PATCH
if (!drw_font_create(drw, font)) if (!drw_font_create(drw, font))