mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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
This commit is contained in:
parent
6020b0cf2b
commit
56d7ef959e
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
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)
|
||||||
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);
|
||||||
|
|
Loading…
Reference in a new issue