e_comp_wl: native surface set to be null 72/66472/3 accepted/tizen/common/20160419.143411 accepted/tizen/ivi/20160419.085630 accepted/tizen/mobile/20160419.085625 accepted/tizen/tv/20160419.085600 accepted/tizen/wearable/20160419.085608 submit/tizen/20160419.081058
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 19 Apr 2016 05:52:45 +0000 (14:52 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 19 Apr 2016 05:57:29 +0000 (22:57 -0700)
The native surface of the ec->frame is set to be null
when the wl_buffer is destroyed.

Change-Id: I88a9eb19911c091e65b56b4d592d0e2b7bc1834a

src/bin/e_comp_wl.c

index cd8a582f55151ba1fad5715288d1f6ba9ed7c7c7..8faf0f5705af2b575f1263b5685f70a54357bf5f 100644 (file)
@@ -1597,7 +1597,10 @@ _e_comp_wl_buffer_cb_destroy(struct wl_listener *listener, void *data EINA_UNUSE
         e_object_unref(E_OBJECT(ec));
 
         if (e_pixmap_resource_get(ec->pixmap) == buffer)
-          e_pixmap_resource_set(ec->pixmap, NULL);
+          {
+             e_pixmap_resource_set(ec->pixmap, NULL);
+             e_comp_object_native_surface_set(ec->frame, 0);
+          }
      }
 
    wl_signal_emit(&buffer->destroy_signal, buffer);