[grilo-plugins] tmdb: Fix segfault on error propagation



commit 098e49826e30b2cb223d449edfaa4174525419f9
Author: Mathias Hasselmann <mathias openismus com>
Date:   Thu Oct 11 14:52:50 2012 +0200

    tmdb: Fix segfault on error propagation

 src/tmdb/grl-tmdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tmdb/grl-tmdb.c b/src/tmdb/grl-tmdb.c
index 02151eb..c0fb80d 100644
--- a/src/tmdb/grl-tmdb.c
+++ b/src/tmdb/grl-tmdb.c
@@ -411,7 +411,7 @@ resolve_closure_callback (ResolveClosure *closure,
   if (outer_error && outer_error->domain != GRL_CORE_ERROR) {
     error = g_error_new_literal (GRL_CORE_ERROR,
                                  GRL_CORE_ERROR_RESOLVE_FAILED,
-                                 error->message);
+                                 outer_error->message);
     g_error_free (outer_error);
   }
 



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