leak--
authorChristopher Michael <cp.michael@samsung.com>
Wed, 23 Jan 2013 11:12:52 +0000 (11:12 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Wed, 23 Jan 2013 11:12:52 +0000 (11:12 +0000)
If we do not have a private palette here, we free the buffer and
return NULL, However we never free'd the xob that was allocated
previously.

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

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

index e902a3f..d495931 100644 (file)
@@ -300,6 +300,7 @@ evas_software_xlib_outbuf_setup_x(int w, int h, int rot, Outbuf_Depth depth,
                                                                    pm);
                if (!buf->priv.pal)
                  {
+                     if (xob) evas_software_xlib_x_output_buffer_free(xob, 1);
                     free(buf);
                     return NULL;
                  }