[Xfce4-commits] [xfce/xfdesktop] 01/01: Fix memory leak when reconnecting DP monitor (Bug #16314)

2020-04-11 Thread noreply
This is an automated email from the git hooks/post-receive script.

andre pushed a 
commit to branch 
master
in repository xfce/xfdesktop.

commit f3f9bdb5a9162480ba1a892d37859321f37c4d51
Author: Jan Ziak <0xe2.0x9a.0...@gmail.com>
Date:   Sat Apr 11 15:43:55 2020 +0200

Fix memory leak when reconnecting DP monitor (Bug #16314)

Signed-off-by: Jan Ziak <0xe2.0x9a.0...@gmail.com>
---
 src/xfce-backdrop.c | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/src/xfce-backdrop.c b/src/xfce-backdrop.c
index bd9180e..955e51f 100644
--- a/src/xfce-backdrop.c
+++ b/src/xfce-backdrop.c
@@ -1599,6 +1599,11 @@ xfce_backdrop_image_data_release(XfceBackdropImageData 
*image_data)
 
 if(image_data->loader)
 g_object_unref(image_data->loader);
+
+if(image_data->backdrop) {
+g_object_unref(image_data->backdrop);
+image_data->backdrop = NULL;
+}
 }
 
 /**
@@ -1671,6 +1676,7 @@ xfce_backdrop_generate_async(XfceBackdrop *backdrop)
 backdrop->priv->image_data = image_data;
 
 image_data->backdrop = backdrop;
+g_object_ref(backdrop);
 image_data->loader = gdk_pixbuf_loader_new();
 image_data->cancellable = g_cancellable_new();
 image_data->image_buffer = g_new0(guchar, XFCE_BACKDROP_BUFFER_SIZE);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits


[Xfce4-commits] [xfce/xfdesktop] 01/01: Fix memory leak when reconnecting DP monitor (Bug #16314)

2020-04-11 Thread noreply
This is an automated email from the git hooks/post-receive script.

andre pushed a 
commit to branch 
xfce-4.14
in repository xfce/xfdesktop.

commit bd6cd3ce62057370a9e7c6699e52385f479e3390
Author: Jan Ziak <0xe2.0x9a.0...@gmail.com>
Date:   Sat Apr 11 15:43:55 2020 +0200

Fix memory leak when reconnecting DP monitor (Bug #16314)

Signed-off-by: Jan Ziak <0xe2.0x9a.0...@gmail.com>
---
 src/xfce-backdrop.c | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/src/xfce-backdrop.c b/src/xfce-backdrop.c
index bd9180e..955e51f 100644
--- a/src/xfce-backdrop.c
+++ b/src/xfce-backdrop.c
@@ -1599,6 +1599,11 @@ xfce_backdrop_image_data_release(XfceBackdropImageData 
*image_data)
 
 if(image_data->loader)
 g_object_unref(image_data->loader);
+
+if(image_data->backdrop) {
+g_object_unref(image_data->backdrop);
+image_data->backdrop = NULL;
+}
 }
 
 /**
@@ -1671,6 +1676,7 @@ xfce_backdrop_generate_async(XfceBackdrop *backdrop)
 backdrop->priv->image_data = image_data;
 
 image_data->backdrop = backdrop;
+g_object_ref(backdrop);
 image_data->loader = gdk_pixbuf_loader_new();
 image_data->cancellable = g_cancellable_new();
 image_data->image_buffer = g_new0(guchar, XFCE_BACKDROP_BUFFER_SIZE);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
___
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits