[gupnp-dlna] Check for NULL info to prevent critical



commit 32224efd4fa4ab3329c2b85ef9b30f3a4e230b31
Author: Jens Georg <mail jensge org>
Date:   Fri Feb 15 15:51:00 2013 +0100

    Check for NULL info to prevent critical

 .../gstreamer-legacy/gupnp-dlna-gst-info-utils.c   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgupnp-dlna/metadata-backends/gstreamer-legacy/gupnp-dlna-gst-info-utils.c 
b/libgupnp-dlna/metadata-backends/gstreamer-legacy/gupnp-dlna-gst-info-utils.c
index b4498e3..288ada5 100644
--- a/libgupnp-dlna/metadata-backends/gstreamer-legacy/gupnp-dlna-gst-info-utils.c
+++ b/libgupnp-dlna/metadata-backends/gstreamer-legacy/gupnp-dlna-gst-info-utils.c
@@ -24,7 +24,8 @@
 void
 gupnp_dlna_gst_discoverer_info_unref (gpointer info)
 {
-        gst_discoverer_info_unref (info);
+        if (info)
+                gst_discoverer_info_unref (info);
 }
 
 void



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