desktop-shell: fix DEREF_AFTER_NULL 64/55664/1
authorSangjin Lee <lsj119@samsung.com>
Mon, 28 Dec 2015 11:07:38 +0000 (20:07 +0900)
committerSangjin Lee <lsj119@samsung.com>
Mon, 28 Dec 2015 11:07:38 +0000 (20:07 +0900)
Change-Id: I81e79341a56b3f493547c88f09822aed8b485b10

src/lib/desktop-shell/xdg-shell.c

index 5b36573..f6bc945 100644 (file)
@@ -346,7 +346,10 @@ xdg_shell_get_xdg_popup(struct wl_client    *client,
     shsurf = shell_surface_create(shell_client, surface, client, &xdg_popup_interface,
                                   &xdg_popup_implementation, 1, id);
     if (!shsurf)
+    {
         wl_client_post_no_memory(client);
+        return ;
+    }
 
     shell_surface_set_popup(shsurf, seat, parent, x, y, flags, serial);
 }