[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r113415: Prevent leak in GDI objects (bug #14850).
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] trunk r113415: Prevent leak in GDI objects (bug #14850). |
Date: |
Sat, 13 Jul 2013 14:21:41 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 113415
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/14850
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2013-07-13 17:21:01 +0300
message:
Prevent leak in GDI objects (bug #14850).
src/w32term.c (x_draw_hollow_cursor): Delete the brush object when
returning early.
modified:
src/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1438
src/w32term.c w32term.c-20091113204419-o5vbwnq5f7feedwu-950
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2013-07-13 10:29:15 +0000
+++ b/src/ChangeLog 2013-07-13 14:21:01 +0000
@@ -1,5 +1,8 @@
2013-07-13 Eli Zaretskii <address@hidden>
+ * w32term.c (x_draw_hollow_cursor): Delete the brush object when
+ returning early. (Bug#14850)
+
* coding.c (syms_of_coding): Set up inhibit-null-byte-detection
and inhibit-iso-escape-detection attributes of 'undecided'.
(Bug#14822)
=== modified file 'src/w32term.c'
--- a/src/w32term.c 2013-07-06 02:40:50 +0000
+++ b/src/w32term.c 2013-07-13 14:21:01 +0000
@@ -5174,7 +5174,10 @@
the current matrix is invalid or such, give up. */
cursor_glyph = get_phys_cursor_glyph (w);
if (cursor_glyph == NULL)
- return;
+ {
+ DeleteObject (hb);
+ return;
+ }
/* Compute frame-relative coordinates for phys cursor. */
get_phys_cursor_geometry (w, row, cursor_glyph, &left, &top, &h);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r113415: Prevent leak in GDI objects (bug #14850).,
Eli Zaretskii <=