Free the previously allocated rectangle is we do not need it.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 83162
This commit is contained in:
Christopher Michael 2013-01-23 11:07:59 +00:00 committed by Christopher Michael
parent c4b536e500
commit 8aead73fe5
1 changed files with 2 additions and 0 deletions

View 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;