mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
X11: Avoid leaking result of XGetAtomName
This commit is contained in:
parent
eb6e579f0a
commit
4cf18f0e2c
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ String XWindowSystemUtilities::Atoms::getName (::Display* display, Atom atom)
|
|||
if (atom == None)
|
||||
return "None";
|
||||
|
||||
return X11Symbols::getInstance()->xGetAtomName (display, atom);
|
||||
return makeXFreePtr (X11Symbols::getInstance()->xGetAtomName (display, atom)).get();
|
||||
}
|
||||
|
||||
bool XWindowSystemUtilities::Atoms::isMimeTypeFile (::Display* display, Atom atom)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue