e_comp_wl_data: fix null pointer dereference 58/49358/1
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Tue, 13 Oct 2015 02:42:22 +0000 (11:42 +0900)
committerMun, Gwan-gyeong <kk.moon@samsung.com>
Tue, 13 Oct 2015 02:42:22 +0000 (11:42 +0900)
Change-Id: Idcf7366155973730236d313ac08d68e7cfe70f70

src/bin/e_comp_wl_data.c

index 095900f..3654350 100644 (file)
@@ -516,6 +516,7 @@ _e_comp_wl_clipboard_offer_create(E_Comp_Wl_Clipboard_Source* source, int fd)
    E_Comp_Wl_Clipboard_Offer *offer;
 
    offer = E_NEW(E_Comp_Wl_Clipboard_Offer, 1);
+   if (!offer) return;
 
    offer->offset = 0;
    offer->source = source;