[Xfce4-commits] [apps/xfdashboard] 01/02: Do not use an uninitialized application instance.

noreply at xfce.org noreply at xfce.org
Wed Mar 2 10:21:21 CET 2016


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 1181d65063096e05458f6a4c18d769b1012efcf0
Author: Stephan Haller <nomad at froevel.de>
Date:   Wed Mar 2 10:19:41 2016 +0100

    Do not use an uninitialized application instance.
    
    Fixes GH #115
---
 plugins/hot-corner/hot-corner.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/plugins/hot-corner/hot-corner.c b/plugins/hot-corner/hot-corner.c
index a6c1572..0ab5bc0 100644
--- a/plugins/hot-corner/hot-corner.c
+++ b/plugins/hot-corner/hot-corner.c
@@ -307,6 +307,11 @@ static void _xfdashboard_hot_corner_dispose(GObject *inObject)
 		priv->settings=NULL;
 	}
 
+	if(priv->application)
+	{
+		priv->application=NULL;
+	}
+
 	/* Call parent's class dispose method */
 	G_OBJECT_CLASS(xfdashboard_hot_corner_parent_class)->dispose(inObject);
 }
@@ -343,6 +348,7 @@ void xfdashboard_hot_corner_init(XfdashboardHotCorner *self)
 	self->priv=priv=XFDASHBOARD_HOT_CORNER_GET_PRIVATE(self);
 
 	/* Set up default values */
+	priv->application=xfdashboard_application_get_default();
 	priv->windowTracker=xfdashboard_window_tracker_get_default();
 	priv->rootWindow=NULL;
 	priv->deviceManager=NULL;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list