From: Junghoon Date: Thu, 15 Oct 2015 10:14:54 +0000 (+0900) Subject: pepper: fix memory leak X-Git-Tag: accepted/tizen/mobile/20151221.050925~34^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc315a86eda0224fd944ae6a7d375eb7d3683d3f;p=platform%2Fcore%2Fuifw%2Fpepper.git pepper: fix memory leak Change-Id: I5da175d116a26f01a82ba26abe29ff070d12a9c5 --- 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); }