[gupnp-tools/wip/search] av-cp: Don't leak DIDL-Lite parser



commit 5ae83f4b84b00035cb7dd33e54de2dd6f19f3883
Author: Jens Georg <mail jensge org>
Date:   Thu Aug 18 11:48:39 2016 +0200

    av-cp: Don't leak DIDL-Lite parser
    
    Signed-off-by: Jens Georg <mail jensge org>

 src/av-cp/search-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/av-cp/search-dialog.c b/src/av-cp/search-dialog.c
index 7e69770..8bec57c 100644
--- a/src/av-cp/search-dialog.c
+++ b/src/av-cp/search-dialog.c
@@ -204,6 +204,7 @@ search_dialog_on_search_done (GObject *source, GAsyncResult *res, gpointer user_
         g_free (xml);
 
 out:
+        g_clear_object (&parser);
         g_source_remove (priv->pulse_timer);
         gtk_entry_set_progress_fraction (priv->search_dialog_entry, 0.0);
         gtk_widget_set_sensitive (GTK_WIDGET (priv->search_dialog_entry), TRUE);


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