aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/src/gen
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-05-27 11:53:13 +0200
committerDan Gudmundsson <[email protected]>2016-05-30 13:17:40 +0200
commitb304be8094f283001d6dfbafab31ead37c585869 (patch)
tree355c614d17c6974cec335b9e76728574449ae0bb /lib/wx/src/gen
parentd5bacdbe0ff1a4327e5e502a0b8cfdddf76e5d86 (diff)
downloadotp-b304be8094f283001d6dfbafab31ead37c585869.tar.gz
otp-b304be8094f283001d6dfbafab31ead37c585869.tar.bz2
otp-b304be8094f283001d6dfbafab31ead37c585869.zip
wx: Fix occasional seq fault after appliction stops
There seems to be a timeing dependent double delete when doing reference cleanup after wx:destroy(). wxGraphicsObjects can thus not be free'ed by wx in the cleanup phase. A guess is that the underlying rendering context deletes all graphics objects without careeing about wxWidgets reference counting.
Diffstat (limited to 'lib/wx/src/gen')
-rw-r--r--lib/wx/src/gen/wxAcceleratorTable.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wx/src/gen/wxAcceleratorTable.erl b/lib/wx/src/gen/wxAcceleratorTable.erl
index 3ed419b057..3441ab6204 100644
--- a/lib/wx/src/gen/wxAcceleratorTable.erl
+++ b/lib/wx/src/gen/wxAcceleratorTable.erl
@@ -46,7 +46,7 @@ new() ->
N::integer(), Entries::[wxAcceleratorEntry:wxAcceleratorEntry()].
new(N,Entries)
when is_integer(N),is_list(Entries) ->
- [?CLASS(EntriesT,wxAcceleratorEntry) || #wx_ref{type=EntriesT} <- Entries],
+ _ = [?CLASS(EntriesT,wxAcceleratorEntry) || #wx_ref{type=EntriesT} <- Entries],
wxe_util:construct(?wxAcceleratorTable_new_2,
<<N:32/?UI,(length(Entries)):32/?UI,
(<< <<(C#wx_ref.ref):32/?UI>> || C <- Entries>>)/binary, 0:(((0+length(Entries)) rem 2)*32)>>).