devilhorns pushed a commit to branch master.

commit 76cea1712cc88b46fef42b097847c000acf3f9d2
Author: Chris Michael <[email protected]>
Date:   Thu Aug 29 08:24:10 2013 +0100

    Avoid potential memleak on rotation of tilebuf.
    
    Port of 70f443d8a8e1dcf9e9f to wayland egl
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/evas/engines/wayland_egl/evas_engine.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c 
b/src/modules/evas/engines/wayland_egl/evas_engine.c
index afcc508..28f72b0 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -823,6 +823,7 @@ eng_setup(Evas *evas, void *info)
         return 0;
      }
 
+   if (re->tb) evas_common_tilebuf_free(re->tb);
    re->tb = evas_common_tilebuf_new(re->win->w, re->win->h);
    if (!re->tb)
      {

-- 

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk

Reply via email to