Fix memory leak after use XGetAtomName

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ab525f2baa)
v3.5.13-sru
Slávek Banko 7 years ago
parent 50f90e9382
commit d330c431b4

@ -4339,10 +4339,13 @@ void NETWinInfo::update(const unsigned long dirty_props[]) {
for (count = 0; count < nitems_ret; count++) {
#ifdef NETWMDEBUG
char* debug_action = XGetAtomName(p->display, (Atom) actions[count]);
fprintf(stderr,
"NETWinInfo::update: adding allowed action %ld '%s'\n",
actions[count],
XGetAtomName(p->display, (Atom) actions[count]));
actions[count], debug_action);
if( debug_action ) {
XFree( debug_action );
}
#endif
if ((Atom) actions[count] == net_wm_action_move)

Loading…
Cancel
Save