e_comp_wl_viewport: Set 'viewport->destination.mode.resource' to null when resource... 26/187126/1
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:10:23 +0000 (16:10 +0900)
fix heap-use-after-free issue.

Change-Id: I24e0f4814f80ebf335a36934bfe88ece2cb2b985

src/bin/e_comp_wl_viewport.c

index 37a3b21d74d300163ce77b8d775f4281a3699b46..1fbcb3bf217d16986e00e9391abdf27a09a75cbd 100644 (file)
@@ -288,6 +288,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");
 }