Commit ac2cbd71 authored by François Grisez's avatar François Grisez
Browse files

Fix bug #2051

Fix invalid reads due to an unstopped audiostream
parent a98c9df5
......@@ -466,10 +466,17 @@ static void prepare(GtkAssistant *w){
}
void linphone_gtk_close_audio_assistant(GtkWidget *w){
gchar *path = g_object_get_data(G_OBJECT(audio_assistant),"path");
gchar *path;
AudioStream *stream;
path = g_object_get_data(G_OBJECT(audio_assistant),"path");
if(path != NULL){
g_unlink(path);
}
stream = (AudioStream *)g_object_get_data(G_OBJECT(audio_assistant), "stream");
if(stream) {
audio_stream_stop(stream);
}
gtk_widget_destroy(w);
if(linphone_gtk_get_audio_assistant_option()){
gtk_main_quit();
......
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