From 0bbb3b9f3b446d0ed9718648875975613f8306a9 Mon Sep 17 00:00:00 2001 From: smorlat <smorlat@3f6dc0c8-ddfe-455d-9043-3cd528dc4637> Date: Wed, 4 Nov 2009 09:06:55 +0000 Subject: [PATCH] fix small memory leaks. git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@748 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/gtk-glade/main.c | 1 + linphone/mediastreamer2/src/nowebcam.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/linphone/gtk-glade/main.c b/linphone/gtk-glade/main.c index 20c4253114..ad65495d6e 100644 --- a/linphone/gtk-glade/main.c +++ b/linphone/gtk-glade/main.c @@ -646,6 +646,7 @@ void linphone_gtk_used_identity_changed(GtkWidget *w){ linphone_core_set_default_proxy_index(linphone_gtk_get_core(),(active==0) ? -1 : (active-1)); linphone_gtk_show_directory_search(); } + if (sel) g_free(sel); } static void linphone_gtk_show_main_window(){ diff --git a/linphone/mediastreamer2/src/nowebcam.c b/linphone/mediastreamer2/src/nowebcam.c index 1a6fc62356..2e6da3c3de 100644 --- a/linphone/mediastreamer2/src/nowebcam.c +++ b/linphone/mediastreamer2/src/nowebcam.c @@ -1696,7 +1696,9 @@ void static_image_init(MSFilter *f){ } void static_image_uninit(MSFilter *f){ - ms_free(f->data); + SIData *d=(SIData*)f->data; + ms_free(d->nowebcamimage); + ms_free(d); } void static_image_preprocess(MSFilter *f){ -- GitLab