aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/examples/demo/ex_graphicsContext.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-05-31 09:15:05 +0200
committerDan Gudmundsson <[email protected]>2016-05-31 09:15:05 +0200
commitffd39bdee7d0cbac044ca6c72afb65689c33b168 (patch)
tree1426bffdff4216370a35e07ded62839de9568cfa /lib/wx/examples/demo/ex_graphicsContext.erl
parent492b0ac2e3305a37ab507b2ff2d9546456cf61e4 (diff)
parentb304be8094f283001d6dfbafab31ead37c585869 (diff)
downloadotp-ffd39bdee7d0cbac044ca6c72afb65689c33b168.tar.gz
otp-ffd39bdee7d0cbac044ca6c72afb65689c33b168.tar.bz2
otp-ffd39bdee7d0cbac044ca6c72afb65689c33b168.zip
Merge branch 'dgud/wx/fix-seqfault-in-cleanup'
* dgud/wx/fix-seqfault-in-cleanup: wx: Fix occasional seq fault after appliction stops
Diffstat (limited to 'lib/wx/examples/demo/ex_graphicsContext.erl')
-rw-r--r--lib/wx/examples/demo/ex_graphicsContext.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/wx/examples/demo/ex_graphicsContext.erl b/lib/wx/examples/demo/ex_graphicsContext.erl
index d883ddfc5c..1193578037 100644
--- a/lib/wx/examples/demo/ex_graphicsContext.erl
+++ b/lib/wx/examples/demo/ex_graphicsContext.erl
@@ -135,6 +135,8 @@ draw(Win, Pen, Brush, Font) ->
wxGraphicsContext:drawPath(Canvas, Path)
end,
wx:foreach(F, lists:seq(1,10)),
+ wxGraphicsObject:destroy(Path),
+ wxGraphicsObject:destroy(Canvas),
ok
catch _:{not_supported, _} ->
Err = "wxGraphicsContext not available in this build of wxwidgets",