Fix allocation error

This commit is contained in:
Myned 2020-06-02 00:39:14 -04:00
parent d6380b865e
commit 78ed7415f5
No known key found for this signature in database
GPG Key ID: 24318A323F309244

View File

@ -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()