discomfitor pushed a commit to branch enlightenment-0.21.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=32b25613067ffd3729bee5230372c983bc54e8ec

commit 32b25613067ffd3729bee5230372c983bc54e8ec
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Wed Oct 18 16:10:48 2017 -0400

    null wl clipboard+selection source pointers when destroying clipboard source
    
    fix T6242
---
 src/bin/e_comp_wl_data.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c
index 607c649db..a73854683 100644
--- a/src/bin/e_comp_wl_data.c
+++ b/src/bin/e_comp_wl_data.c
@@ -1276,6 +1276,10 @@ 
e_comp_wl_clipboard_source_unref(E_Comp_Wl_Clipboard_Source *source)
      }
 
    _mime_types_free(&source->data_source);
+   if (source == e_comp_wl->clipboard.source)
+     e_comp_wl->clipboard.source = NULL;
+   if (&source->data_source == e_comp_wl->selection.data_source)
+     e_comp_wl->selection.data_source = NULL;
 
    wl_signal_emit(&source->data_source.destroy_signal, &source->data_source);
    wl_array_release(&source->contents);

-- 


Reply via email to