mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-10 12:40:10 +00:00
gstreamer: Fix small memleak
This commit is contained in:
parent
7085a58f01
commit
0a6c4711bc
@ -477,7 +477,10 @@ gtk_gst_sink_texture_from_buffer (GtkGstSink *self,
|
||||
g_object_unref (builder);
|
||||
|
||||
if (!texture)
|
||||
GST_ERROR_OBJECT (self, "Failed to create dmabuf texture: %s", error->message);
|
||||
{
|
||||
GST_ERROR_OBJECT (self, "Failed to create dmabuf texture: %s", error->message);
|
||||
g_error_free (error);
|
||||
}
|
||||
|
||||
*pixel_aspect_ratio = ((double) GST_VIDEO_INFO_PAR_N (&self->v_info) /
|
||||
(double) GST_VIDEO_INFO_PAR_D (&self->v_info));
|
||||
|
Loading…
Reference in New Issue
Block a user