[815/906] fix some refcount errors

This commit is contained in:
Matthew Waters 2013-09-20 11:55:36 +10:00
parent 888c66d855
commit d10ccfb795
2 changed files with 3 additions and 0 deletions

View file

@ -94,6 +94,8 @@ _ensure_window (GstGLContext * context)
window = gst_gl_window_new (context->priv->display); window = gst_gl_window_new (context->priv->display);
gst_gl_context_set_window (context, window); gst_gl_context_set_window (context, window);
gst_object_unref (window);
} }
static void static void

View file

@ -464,6 +464,7 @@ gst_glimage_sink_change_state (GstElement * element, GstStateChange transition)
glimage_sink->display = NULL; glimage_sink->display = NULL;
} }
gst_object_unref (glimage_sink->context); gst_object_unref (glimage_sink->context);
gst_object_unref (window);
return GST_STATE_CHANGE_FAILURE; return GST_STATE_CHANGE_FAILURE;
} }