[grilo-plugins] podcasts: Fix freing previous GrlNetWc
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [grilo-plugins] podcasts: Fix freing previous GrlNetWc
- Date: Tue,  1 Mar 2011 09:38:27 +0000 (UTC)
commit 32478aef15ba391beb00d91702321ea35033b1fa
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Tue Mar 1 10:27:42 2011 +0100
    podcasts: Fix freing previous GrlNetWc
    
    Free only if its not null.
    
    Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
 src/podcasts/grl-podcasts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/podcasts/grl-podcasts.c b/src/podcasts/grl-podcasts.c
index a4d5ad3..759a36d 100644
--- a/src/podcasts/grl-podcasts.c
+++ b/src/podcasts/grl-podcasts.c
@@ -441,7 +441,7 @@ read_url_async (GrlPodcastsSource *source,
    * In this case, as we don't know the previous URL,
    * we ditch the Wc and create another. It's cheap.
    */
-  if (!source->priv->wc)
+  if (source->priv->wc)
     g_object_unref (source->priv->wc);
 
   source->priv->wc = grl_net_wc_new ();
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]