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 5b365737c680f465f03ff5708b927d33c30d08fb..f6bc945d4adb308f3515fb86b43ab67afa83dd41 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);
 }