pushed
zhengqunkoo/sxiv • 10:13 AM - Jan 16, 2020
This change fixes a memory leak in win_res() by moving X resource database creation out of the helper and into win_init(), so the same XrmDatabase can be reused for font and color lookups instead of being recreated on every call. The function now accepts the database directly and safely falls back to defaults when no resource is available. It’s a small internal cleanup, but it removes unnecessary allocations during startup and fixes issue #372.
