[GTK] Build fix after r230529 (WaylandCompositorDisplay leaks its wl_display)
authorclopez@igalia.com <clopez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2018 11:29:26 +0000 (11:29 +0000)
committerclopez@igalia.com <clopez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2018 11:29:26 +0000 (11:29 +0000)
https://bugs.webkit.org/show_bug.cgi?id=184406

Rubber-stamped by Michael Catanzaro.

Fix build with clang 3.8

No new tests, it is a build fix.

* platform/graphics/wayland/PlatformDisplayWayland.cpp:
(WebCore::PlatformDisplayWayland::create):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@230706 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/wayland/PlatformDisplayWayland.cpp

index 920e9ec..d45ae7b 100644 (file)
@@ -1,3 +1,17 @@
+2018-04-17  Carlos Alberto Lopez Perez  <clopez@igalia.com>
+
+        [GTK] Build fix after r230529 (WaylandCompositorDisplay leaks its wl_display)
+        https://bugs.webkit.org/show_bug.cgi?id=184406
+
+        Rubber-stamped by Michael Catanzaro.
+
+        Fix build with clang 3.8
+
+        No new tests, it is a build fix.
+
+        * platform/graphics/wayland/PlatformDisplayWayland.cpp:
+        (WebCore::PlatformDisplayWayland::create):
+
 2018-04-16  Antoine Quint  <graouts@apple.com>
 
         Layout Test animations/needs-layout.html is a flaky Image Failure.
index 05f92c2..d62d054 100644 (file)
@@ -58,14 +58,14 @@ std::unique_ptr<PlatformDisplay> PlatformDisplayWayland::create()
 
     auto platformDisplay = std::unique_ptr<PlatformDisplayWayland>(new PlatformDisplayWayland(display, NativeDisplayOwned::Yes));
     platformDisplay->initialize();
-    return platformDisplay;
+    return WTFMove(platformDisplay);
 }
 
 std::unique_ptr<PlatformDisplay> PlatformDisplayWayland::create(struct wl_display* display)
 {
     auto platformDisplay = std::unique_ptr<PlatformDisplayWayland>(new PlatformDisplayWayland(display, NativeDisplayOwned::No));
     platformDisplay->initialize();
-    return platformDisplay;
+    return WTFMove(platformDisplay);
 }
 
 PlatformDisplayWayland::PlatformDisplayWayland(struct wl_display* display, NativeDisplayOwned displayOwned)