shell: free the string of app_id when xdg_surface is destroyed. 33/60933/1
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 2 Mar 2016 23:23:22 +0000 (08:23 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 2 Mar 2016 23:23:22 +0000 (08:23 +0900)
Change-Id: Ifd4d27a65ef54c2bd6995462f6d1d2a2c2f4e9e2

src/lib/shell.c

index ed520471e49a4742660162492faeb7094182e428..d3a620e531bd030eea4fbaaaf30df653b4d6fc2a 100644 (file)
@@ -31,6 +31,9 @@ handle_surface_destroy(pepper_event_listener_t *listener, pepper_object_t *surfa
    if (shsurf->title)
      eina_stringshare_del(shsurf->title);
 
+   if (shsurf->app_id)
+     eina_stringshare_del(shsurf->app_id);
+
    pepper_object_set_user_data(surface,
                                pepper_surface_get_role((pepper_surface_t *)surface),
                                NULL, NULL);