FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Missing cleanup of Direct2D resources. · gnuplot/gnuplot-old@668504f · GitHub

Repository navigation

Commit 668504f

Browse files
markisch
committed
Missing cleanup of Direct2D resources.
1 parent b472a2a commit 668504f

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

‎ChangeLog‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2017-06-14 Bastian Maerkisch <bmaerkisch@web.de>
2+
3+
* src/win/wd2d.cpp: When compiled with D2DDEBUG defined, enable the
4+
Direct2D debug layer.
5+
6+
* src/win/winmain.c (WinExit): Missing cleanup of Direct2D resources.
7+
18
2017-06-13 Bastian Maerkisch <bmaerkisch@web.de>
29

310
* src/win/wgdiplus.cpp: Cleartype text antialiasing seems to be only

‎src/win/winmain.c‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $Id: winmain.c,v 1.101 2017-05-20 18:28:19 markisch Exp $
2+
* $Id: winmain.c,v 1.102 2017-06-14 07:43:39 markisch Exp $
33
*/
44

55
/* GNUPLOT - win/winmain.c */
@@ -78,6 +78,9 @@
7878
#ifdef HAVE_GDIPLUS
7979
#include "wgdiplus.h"
8080
#endif
81+
#ifdef HAVE_D2D
82+
#include "wd2d.h"
83+
#endif
8184
#ifdef WXWIDGETS
8285
#include "wxterminal/wxt_term.h"
8386
#endif
@@ -191,6 +194,9 @@ WinExit(void)
191194
#endif
192195
#ifdef HAVE_GDIPLUS
193196
gdiplusCleanup();
197+
#endif
198+
#ifdef HAVE_D2D
199+
d2dCleanup();
194200
#endif
195201
CoUninitialize();
196202
return;
@@ -1238,7 +1244,7 @@ ConsoleHandler(DWORD dwType)
12381244
DWORD written;
12391245

12401246
// NOTE: returning from this handler terminates the application.
1241-
// Insteadm, we signal the main thread to clean up and exit and
1247+
// Instead, we signal the main thread to clean up and exit and
12421248
// then idle by sleeping.
12431249
terminate_flag = TRUE;
12441250
// send ^D to main thread input queue
@@ -1260,6 +1266,7 @@ ConsoleHandler(DWORD dwType)
12601266
}
12611267
#endif
12621268

1269+
12631270
/* public interface to printer routines : Windows PRN emulation
12641271
* (formerly in win.trm)
12651272
*/

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL