From fc315a86eda0224fd944ae6a7d375eb7d3683d3f Mon Sep 17 00:00:00 2001 From: Junghoon Date: Thu, 15 Oct 2015 19:14:54 +0900 Subject: [PATCH] pepper: fix memory leak Change-Id: I5da175d116a26f01a82ba26abe29ff070d12a9c5 --- src/lib/pepper/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/pepper/surface.c b/src/lib/pepper/surface.c index 6736da0..2da1148 100644 --- a/src/lib/pepper/surface.c +++ b/src/lib/pepper/surface.c @@ -47,6 +47,7 @@ surface_handle_buffer_release(pepper_event_listener_t *listener, { pepper_surface_t *surface = data; surface->buffer.buffer = NULL; + pepper_event_listener_remove(listener); } static void @@ -377,7 +378,6 @@ pepper_surface_commit(pepper_surface_t *surface) if (surface->buffer.buffer) { pepper_buffer_unreference(surface->buffer.buffer); - pepper_event_listener_remove(surface->buffer.release_listener); pepper_event_listener_remove(surface->buffer.destroy_listener); } -- 2.7.4