summaryrefslogtreecommitdiff
path: root/legacy/evas/src/modules/engines/software_gdi/evas_outbuf.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-09-18 23:17:27 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-09-18 23:17:27 +0000
commit89038e3b0cb12e7a67b131e10d70d098bfb9da34 (patch)
tree22c7cab32d6c4a6b3487937f0aa387642b6318a9 /legacy/evas/src/modules/engines/software_gdi/evas_outbuf.c
parentd89ebf341bd940f6bd88f2812989ceb1b034183a (diff)
free the main region (leak--)
SVN revision: 52429
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/modules/engines/software_gdi/evas_outbuf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/legacy/evas/src/modules/engines/software_gdi/evas_outbuf.c b/legacy/evas/src/modules/engines/software_gdi/evas_outbuf.c
index e260f82..6841baa 100644
--- a/legacy/evas/src/modules/engines/software_gdi/evas_outbuf.c
+++ b/legacy/evas/src/modules/engines/software_gdi/evas_outbuf.c
@@ -408,8 +408,9 @@ evas_software_gdi_outbuf_push_updated_region(Outbuf *buf,
408 /* Region code */ 408 /* Region code */
409 if (!buf->priv.gdi.region) 409 if (!buf->priv.gdi.region)
410 { 410 {
411 if (regions) 411 if (buf->priv.gdi.regions)
412 DeleteObject(regions); 412 DeleteObject(buf->priv.gdi.regions);
413 buf->priv.gdi.regions = NULL;
413 SetWindowRgn(buf->priv.gdi.window, NULL, 1); 414 SetWindowRgn(buf->priv.gdi.window, NULL, 1);
414 return; 415 return;
415 } 416 }
@@ -434,7 +435,6 @@ evas_software_gdi_outbuf_push_updated_region(Outbuf *buf,
434 435
435 ww = rect.right - rect.left; 436 ww = rect.right - rect.left;
436 wh = rect.bottom - rect.top; 437 wh = rect.bottom - rect.top;
437 printf ("(%d,%d) (%d,%d)\n", w, h, ww, wh);
438 438
439 if (!GetWindowRect(buf->priv.gdi.window, &rect)) 439 if (!GetWindowRect(buf->priv.gdi.window, &rect))
440 return; 440 return;
@@ -554,6 +554,7 @@ evas_software_gdi_outbuf_push_updated_region(Outbuf *buf,
554 554
555 if (regions) 555 if (regions)
556 SetWindowRgn(buf->priv.gdi.window, regions, 1); 556 SetWindowRgn(buf->priv.gdi.window, regions, 1);
557 buf->priv.gdi.regions = regions;
557 558
558 buf->priv.region_built = 1; 559 buf->priv.region_built = 1;
559 } 560 }