Free the previously allocated rectangle is we do not need it.
authorChristopher Michael <cp.michael@samsung.com>
Wed, 23 Jan 2013 11:07:59 +0000 (11:07 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Wed, 23 Jan 2013 11:07:59 +0000 (11:07 +0000)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 83162

src/modules/evas/engines/software_x11/evas_xlib_outbuf.c

index eea8ba9..e902a3f 100644 (file)
@@ -393,6 +393,8 @@ evas_software_xlib_outbuf_new_region_for_update(Outbuf *buf, int x, int y, int w
             return buf->priv.onebuf;
          }
 
+        if (rect) eina_rectangle_free(rect);
+
        obr = calloc(1, sizeof(Outbuf_Region));
         if (!obr) return NULL;