glcontext_wgl: fix missing unref
authorMatthias Fuchs <matthias1.fuchs@zeiss.com>
Wed, 5 Apr 2023 11:20:19 +0000 (13:20 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 14 Apr 2023 03:45:12 +0000 (03:45 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4419>

subprojects/gst-plugins-base/gst-libs/gst/gl/wgl/gstglcontext_wgl.c

index 200304e..d9ccc4b 100644 (file)
@@ -528,5 +528,7 @@ gst_gl_context_wgl_get_config (GstGLContext * context)
 
   pixfmt = GetPixelFormat (hdc);
 
+  gst_object_unref (window);
+
   return pixel_format_to_structure (hdc, pixfmt);
 }