e_comp_wl_viewport: Set 'viewport->destination.mode.resource' to null when resource... 39/187139/1 accepted/tizen/4.0/unified/20180829.004618 submit/tizen_4.0/20180820.075727
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 20 Aug 2018 07:10:23 +0000 (16:10 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Mon, 20 Aug 2018 07:54:32 +0000 (16:54 +0900)
fix heap-use-after-free issue.

Change-Id: I24e0f4814f80ebf335a36934bfe88ece2cb2b985

src/bin/e_comp_wl_viewport.c

index 650736aa81b8330c120aecb92175ac29d99b1777..f8eaada0b9dedf9bc14862872eb67d872b68ff7a 100644 (file)
@@ -283,6 +283,8 @@ _e_comp_wl_destination_mode_destroy(struct wl_resource *resource)
 
    _e_comp_wl_viewport_set_changed(viewport);
 
+   viewport->destination.mode.resource = NULL;
+
    PIN("destination.mode destroy");
 }