diff options
author | Dan Gudmundsson <[email protected]> | 2016-01-08 10:43:47 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2016-02-23 14:18:55 +0100 |
commit | a5d1c7b8fc58a8dff36d8f72df22e2c372610799 (patch) | |
tree | 89d8f3a5c656167fca008f717be0286399c81bd1 /lib/wx/c_src/wxe_driver.c | |
parent | bd5c928e1c47f05d0d7b18f4e28e42d276cfc038 (diff) | |
download | otp-a5d1c7b8fc58a8dff36d8f72df22e2c372610799.tar.gz otp-a5d1c7b8fc58a8dff36d8f72df22e2c372610799.tar.bz2 otp-a5d1c7b8fc58a8dff36d8f72df22e2c372610799.zip |
wx: Fix a crash with sending two binaries to command queue
Introduced when I optimized the binary handling.
Diffstat (limited to 'lib/wx/c_src/wxe_driver.c')
-rw-r--r-- | lib/wx/c_src/wxe_driver.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/wx/c_src/wxe_driver.c b/lib/wx/c_src/wxe_driver.c index eb7d7dcaeb..6f027ea25b 100644 --- a/lib/wx/c_src/wxe_driver.c +++ b/lib/wx/c_src/wxe_driver.c @@ -241,12 +241,10 @@ standard_outputv(ErlDrvData drv_data, ErlIOVec* ev) bin = ev->binv[1]; driver_binary_inc_refc(bin); /* Otherwise it could get deallocated */ binref->bin = bin; - sd->bin = binref; } else { /* Empty binary (becomes NULL) */ binref->base = NULL; binref->size = 0; binref->from = driver_caller(sd->port_handle); binref->bin = NULL; - sd->bin = binref; } } |