Fix invalid reads due to an unstopped audiostream
This commit is contained in:
François Grisez 2015-02-02 12:23:38 +01:00
parent a98c9df520
commit ac2cbd71af

View file

@ -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();