Commit 56d7ef95 authored by Vineeth T M's avatar Vineeth T M Committed by Tim-Philipp Müller
Browse files

jsseek: fix memory leaks

ctx, list and visual_entries are not being freed
resulting in memory leaks

https://bugzilla.gnome.org/show_bug.cgi?id=752454
parent 6020b0cf
...@@ -1947,6 +1947,7 @@ init_visualization_features (void) ...@@ -1947,6 +1947,7 @@ init_visualization_features (void)
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (vis_combo), name); gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (vis_combo), name);
} }
gtk_combo_box_set_active (GTK_COMBO_BOX (vis_combo), 0); gtk_combo_box_set_active (GTK_COMBO_BOX (vis_combo), 0);
gst_plugin_feature_list_free (list);
} }
static void static void
...@@ -2679,7 +2680,7 @@ main (int argc, char **argv) ...@@ -2679,7 +2680,7 @@ main (int argc, char **argv)
g_print ("Error initializing: %s\n", err->message); g_print ("Error initializing: %s\n", err->message);
exit (1); exit (1);
} }
g_option_context_free (ctx);
GST_DEBUG_CATEGORY_INIT (seek_debug, "seek", 0, "seek example"); GST_DEBUG_CATEGORY_INIT (seek_debug, "seek", 0, "seek example");
if (argc != 3) { if (argc != 3) {
...@@ -3022,6 +3023,7 @@ main (int argc, char **argv) ...@@ -3022,6 +3023,7 @@ main (int argc, char **argv)
gst_element_set_state (pipeline, GST_STATE_NULL); gst_element_set_state (pipeline, GST_STATE_NULL);
g_print ("free pipeline\n"); g_print ("free pipeline\n");
g_array_free (vis_entries, TRUE);
gst_object_unref (pipeline); gst_object_unref (pipeline);
g_list_foreach (paths, (GFunc) g_free, NULL); g_list_foreach (paths, (GFunc) g_free, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment