FcPatternDestroy(3)
π FcPatternDestroy(3) β the fontconfig manual, but make it cute
okay so this is FcPatternDestroy(3) from the fontconfig section 3 girlypops β i.e. library calls, not commands. she's short, she's iconic, she's the cleanup queen π
β¨ NAME β¨
FcPatternDestroy β destroy a pattern ππΈ
like, literally, she ends it. respectfully.
π¦ SYNOPSIS π¦
#include <fontconfig/fontconfig.h>
void FcPatternDestroy (FcPattern *p);
no cap, that's the whole vibe check β one include, one function, one pointer π
π DESCRIPTION π
okay bestie, listen, this is important: FcPatternDestroy decrements the pattern reference count π not "frees it immediately", not "yeets it into the void" β it decrements the reference count. the way that distinction matters π
so it's like this:
- there's a count of how many references exist to the pattern
p - this function takes that count down by one
- if all references are gone, then it destroys the pattern π«Ά
- and in the process of destroying the pattern, it also destroys all related values β every last one, no leftovers, we love a thorough queen β¨
so if other people still have references? she just politely steps back π the pattern lives on, main character energy, until the last ref dips.
the return type is void, because she doesn't do receipts β no return value, no status, nothing to check. she just does the thing. periodt. π₯
β οΈ tiny caution bestie: this is a reference count situation, not a "call it and forget it" situation. calling it when you don't hold a reference is gonna have a bad time, iykyk π
π that's it, that's the page π
genuinely obsessed with how short this one is β she said "no bloat, only function." slay. π¦π
this little love letter is from Fontconfig 2.17.0, dated 27 June 2025 β mwah, take care of your reference counts, ily πβ
π¦ where this page comes from
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 43: fontconfig-devel 2.17.0-3.fc43 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- fedora 44: fontconfig-devel 2.17.0-4.fc44 Β· HPND AND LicenseRef-Fedora-Public-Domain AND Unicode-DFS-2016
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms