mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-24 04:28:10 +00:00
[client] wayland: do not leak wp_presentation_feedback objects
This commit is contained in:
parent
4b016b441c
commit
85f34602f4
1 changed files with 2 additions and 0 deletions
|
@ -65,12 +65,14 @@ static void presentationFeedbackPresented(void * opaque,
|
||||||
tsDiff(&delta, &present, &data->sent);
|
tsDiff(&delta, &present, &data->sent);
|
||||||
ringbuffer_push(wlWm.photonTimings, &(float){ delta.tv_sec + delta.tv_nsec * 1e-6f });
|
ringbuffer_push(wlWm.photonTimings, &(float){ delta.tv_sec + delta.tv_nsec * 1e-6f });
|
||||||
free(data);
|
free(data);
|
||||||
|
wp_presentation_feedback_destroy(feedback);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void presentationFeedbackDiscarded(void * data,
|
static void presentationFeedbackDiscarded(void * data,
|
||||||
struct wp_presentation_feedback * feedback)
|
struct wp_presentation_feedback * feedback)
|
||||||
{
|
{
|
||||||
free(data);
|
free(data);
|
||||||
|
wp_presentation_feedback_destroy(feedback);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct wp_presentation_feedback_listener presentationFeedbackListener = {
|
static const struct wp_presentation_feedback_listener presentationFeedbackListener = {
|
||||||
|
|
Loading…
Reference in a new issue