[SCM] gsequencer/master: fixed ref counting
jkraehemann-guest at users.alioth.debian.org
jkraehemann-guest at users.alioth.debian.org
Fri Mar 17 11:32:33 UTC 2017
The following commit has been merged in the master branch:
commit 83ba50094db4b190e957ad4e21bba30b1d6ee93b
Author: Joël Krähemann <jkraehemann-guest at users.alioth.debian.org>
Date: Fri Mar 17 10:59:02 2017 +0100
fixed ref counting
diff --git a/debian/patches/fix-missing-dispose.diff b/debian/patches/fix-missing-dispose.diff
index 26aaa4e..fd56be4 100644
--- a/debian/patches/fix-missing-dispose.diff
+++ b/debian/patches/fix-missing-dispose.diff
@@ -9672,6 +9672,39 @@
/* notation and automation */
audio->notation = NULL;
audio->automation = NULL;
+@@ -2206,6 +2158,7 @@
+ "samplerate\0", audio->samplerate,
+ "buffer-size\0", audio->buffer_size,
+ NULL);
++ g_object_ref(channel);
+
+ if(start == NULL){
+ start = channel;
+@@ -2405,6 +2358,7 @@
+ for(; j < audio->audio_channels; j++){
+ channel1 = channel0->next;
+
++ g_object_run_dispose(channel0);
+ g_object_unref((GObject *) channel0);
+
+ channel0 = channel1;
+@@ -2717,6 +2671,8 @@
+ "samplerate\0", audio->samplerate,
+ "buffer-size\0", audio->buffer_size,
+ NULL);
++ g_object_ref(channel);
++
+ if(start == NULL){
+ /* set first channel in AgsAudio */
+ if(type == AGS_TYPE_OUTPUT){
+@@ -2840,6 +2796,7 @@
+ while(channel != NULL){
+ channel_next = channel->next;
+
++ g_object_run_dispose(channel);
+ g_object_unref((GObject *) channel);
+
+ channel = channel_next;
--- a/ags/audio/ags_channel.c
+++ b/ags/audio/ags_channel.c
@@ -753,66 +753,10 @@
@@ -9803,3 +9836,14 @@
}
/**
+--- a/ags/audio/recall/ags_copy_pattern_channel_run.c
++++ b/ags/audio/recall/ags_copy_pattern_channel_run.c
+@@ -508,7 +508,7 @@
+ * unref AgsAudioSignal because AgsCopyPatternChannelRun has no need for it
+ * if you need a valid reference to audio_signal you have to g_object_ref(audio_signal)
+ */
+- g_object_unref(audio_signal);
++ // g_object_unref(audio_signal);
+
+ recycling = recycling->next;
+ }
--
gsequencer packaging
More information about the pkg-multimedia-commits
mailing list