[totem/gnome-3-6] backend: Fix possible leak of ->download_buffering_element



commit 302afa0bb1003f9acf47a83856ec6feea8da20ef
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 25 10:52:28 2012 +0200

    backend: Fix possible leak of ->download_buffering_element

 src/backend/bacon-video-widget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index d49d553..d2d016e 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -1882,8 +1882,8 @@ bvw_handle_buffering_message (GstMessage * message, BaconVideoWidget *bvw)
        gst_element_set_state (GST_ELEMENT (bvw->priv->play), GST_STATE_PAUSED);
 
        bvw_reconfigure_fill_timeout (bvw, 200);
+       bvw->priv->download_buffering_element = g_object_ref (message->src);
      }
-     bvw->priv->download_buffering_element = g_object_ref (message->src);
 
      return;
    }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]