fix memory leak in movemouse()
This commit is contained in:
parent
a74ca1d1de
commit
fa98171d0b
2
event.c
2
event.c
|
@ -71,6 +71,7 @@ movemouse(Client * c, awesome_config *awesomeconf)
|
||||||
{
|
{
|
||||||
case ButtonRelease:
|
case ButtonRelease:
|
||||||
XUngrabPointer(c->display, CurrentTime);
|
XUngrabPointer(c->display, CurrentTime);
|
||||||
|
p_delete(&si);
|
||||||
return;
|
return;
|
||||||
case ConfigureRequest:
|
case ConfigureRequest:
|
||||||
handle_event_configurerequest(&ev,awesomeconf);
|
handle_event_configurerequest(&ev,awesomeconf);
|
||||||
|
@ -97,7 +98,6 @@ movemouse(Client * c, awesome_config *awesomeconf)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p_delete(&si);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue