[rygel-gst-0-10-plugins] Fix some GError mistakes.



commit c3213b4de35ffc9e41fc85b97cbd5706508151c5
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Tue Feb 5 16:01:24 2013 +0100

    Fix some GError mistakes.

 src/media-export/rygel-media-export-media-cache.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/media-export/rygel-media-export-media-cache.c b/src/media-export/rygel-media-export-media-cache.c
index 836b801..0712243 100644
--- a/src/media-export/rygel-media-export-media-cache.c
+++ b/src/media-export/rygel-media-export-media-cache.c
@@ -1192,6 +1192,8 @@ rygel_media_export_media_cache_open_db (RygelMediaExportMediaCache  *self,
       g_propagate_error (error, inner_error);
       return;
     }
+    g_error_free (inner_error);
+    inner_error = NULL;
     g_debug ("Could not find schema version; checking for empty database...");
     rows = rygel_media_export_database_query_value (priv->db, "SELECT count(type) FROM sqlite_master WHERE rowid=1", NULL, 0, &inner_error);
     if (inner_error) {
@@ -1948,6 +1950,7 @@ rygel_media_export_media_cache_query_value (RygelMediaExportMediaCache  *self,
   g_return_val_if_fail (RYGEL_MEDIA_EXPORT_IS_MEDIA_CACHE (self), 0);
 
   priv = self->priv;
+  inner_error = NULL;
   value = rygel_media_export_database_query_value (priv->db,
 						   rygel_media_export_sql_factory_make (priv->sql, id),
 						   values,



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