diff options
-rw-r--r-- | libgupnp-dlna/gupnp-dlna-load.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgupnp-dlna/gupnp-dlna-load.c b/libgupnp-dlna/gupnp-dlna-load.c index e69d820..927f635 100644 --- a/libgupnp-dlna/gupnp-dlna-load.c +++ b/libgupnp-dlna/gupnp-dlna-load.c @@ -593,7 +593,8 @@ process_dlna_profile (xmlTextReaderPtr reader, gst_encoding_profile_free (enc_profile); g_list_free (stream_profiles); - gst_caps_unref (format); + if (format) + gst_caps_unref (format); xmlFree (mime); xmlFree (name); if (base_profile) |