[SCM] gsequencer/master: provide patch to fix Bug#857937
jkraehemann-guest at users.alioth.debian.org
jkraehemann-guest at users.alioth.debian.org
Thu Mar 16 14:36:30 UTC 2017
The following commit has been merged in the master branch:
commit b90d57315def5c6fb3bcb9e560dab0f94f7fd204
Author: Joël Krähemann <jkraehemann-guest at users.alioth.debian.org>
Date: Thu Mar 16 15:36:16 2017 +0100
provide patch to fix Bug#857937
diff --git a/debian/patches/fix-leak-while-g-timeout-function.diff b/debian/patches/fix-leak-while-g-timeout-function.diff
new file mode 100644
index 0000000..c4634cb
--- /dev/null
+++ b/debian/patches/fix-leak-while-g-timeout-function.diff
@@ -0,0 +1,100 @@
+--- a/ags/X/ags_navigation.c
++++ b/ags/X/ags_navigation.c
+@@ -750,6 +750,8 @@
+ ags_navigation_duration_time_queue_draw(GtkWidget *widget)
+ {
+ AgsNavigation *navigation;
++
++ gchar *str;
+
+ gdk_threads_enter();
+
+@@ -760,10 +762,12 @@
+
+ return(TRUE);
+ }
+-
++
++ str = ags_soundcard_get_uptime(AGS_SOUNDCARD(navigation->soundcard));
+ g_object_set(navigation->duration_time,
+- "label\0", ags_soundcard_get_uptime(AGS_SOUNDCARD(navigation->soundcard)),
++ "label\0", str,
+ NULL);
++ g_free(str);
+ gtk_widget_queue_draw((GtkWidget *) navigation->duration_time);
+
+ gdk_threads_leave();
+--- a/ags/X/machine/ags_cell_pattern.c
++++ b/ags/X/machine/ags_cell_pattern.c
+@@ -908,7 +908,7 @@
+
+ AgsMutexManager *mutex_manager;
+
+- GList *list, *active;
++ GList *list_start, *list, *active;
+ guint offset;
+ guint active_led_new;
+ guint i;
+@@ -987,7 +987,8 @@
+ pthread_mutex_unlock(audio_mutex);
+
+ /* led */
+- list = gtk_container_get_children((GtkContainer *) cell_pattern->led);
++ list_start =
++ list = gtk_container_get_children((GtkContainer *) cell_pattern->led);
+ active = NULL;
+
+ for(i = 0; list != NULL; i++){
+@@ -1007,7 +1008,7 @@
+ ags_led_set_active(AGS_LED(active->data));
+ }
+
+- g_list_free(list);
++ g_list_free(list_start);
+
+ gdk_threads_leave();
+
+--- a/ags/X/machine/ags_pattern_box.c
++++ b/ags/X/machine/ags_pattern_box.c
+@@ -770,7 +770,7 @@
+
+ AgsMutexManager *mutex_manager;
+
+- GList *list, *active;
++ GList *list_start, *list, *active;
+ guint active_led_new;
+ guint i;
+
+@@ -848,7 +848,8 @@
+ pthread_mutex_unlock(audio_mutex);
+
+ /* offset */
+- list = gtk_container_get_children((GtkContainer *) pattern_box->offset);
++ list_start =
++ list = gtk_container_get_children((GtkContainer *) pattern_box->offset);
+
+ for(i = 0; list != NULL; i++){
+ if(gtk_toggle_button_get_active(list->data)){
+@@ -858,10 +859,11 @@
+ list = list->next;
+ }
+
+- g_list_free(list);
++ g_list_free(list_start);
+
+ /* led */
+- list = gtk_container_get_children((GtkContainer *) pattern_box->led);
++ list_start =
++ list = gtk_container_get_children((GtkContainer *) pattern_box->led);
+ active = NULL;
+
+ for(i = 0; list != NULL; i++){
+@@ -881,7 +883,7 @@
+ ags_led_set_active(AGS_LED(active->data));
+ }
+
+- g_list_free(list);
++ g_list_free(list_start);
+
+ gdk_threads_leave();
+
diff --git a/debian/patches/series b/debian/patches/series
index 00deb76..9ac6fe7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -29,3 +29,4 @@ fix-thread-posix.patch
fix-duplicated-flag-definition.diff
fix-null-pointer-dereference.diff
fix-missing-midi-connection-dialog.diff
+fix-leak-while-g-timeout-function.diff
--
gsequencer packaging
More information about the pkg-multimedia-commits
mailing list