[gtk/wip/sadiq/fixes: 275/275] mediastream: Fix possible memory leak
- From: Mohammed Sadiq <pksadiq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/sadiq/fixes: 275/275] mediastream: Fix possible memory leak
- Date: Thu, 20 Dec 2018 05:00:02 +0000 (UTC)
commit 1df276f263136898d609571aa697c6dc832b2312
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Thu Dec 20 10:26:56 2018 +0530
mediastream: Fix possible memory leak
@error is (transfer full). So the error passed should be freed if not used
gtk/gtkmediastream.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkmediastream.c b/gtk/gtkmediastream.c
index f8a5dc8ce9..e6529041f7 100644
--- a/gtk/gtkmediastream.c
+++ b/gtk/gtkmediastream.c
@@ -1137,7 +1137,10 @@ gtk_media_stream_gerror (GtkMediaStream *self,
g_return_if_fail (error != NULL);
if (priv->error)
- return;
+ {
+ g_error_free (error);
+ return;
+ }
g_object_freeze_notify (G_OBJECT (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]