mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix allocation error
This commit is contained in:
parent
d6380b865e
commit
78ed7415f5
|
|
@ -193,10 +193,9 @@ static std::string GetWindowTitle(size_t i)
|
|||
{
|
||||
std::string str(name);
|
||||
windowTitle = str;
|
||||
XFree(name);
|
||||
}
|
||||
|
||||
XFree(name);
|
||||
|
||||
return windowTitle;
|
||||
}
|
||||
|
||||
|
|
@ -262,9 +261,8 @@ void GetCurrentWindowTitle(string &title)
|
|||
if (status != 0 && name != nullptr) {
|
||||
std::string str(name);
|
||||
title = str;
|
||||
XFree(name);
|
||||
}
|
||||
|
||||
XFree(name);
|
||||
}
|
||||
|
||||
pair<int, int> getCursorPos()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user