summaryrefslogtreecommitdiff
path: root/capplet
diff options
context:
space:
mode:
Diffstat (limited to 'capplet')
-rw-r--r--capplet/gsp-app-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capplet/gsp-app-manager.c b/capplet/gsp-app-manager.c
index 7e245db..5c30dfd 100644
--- a/capplet/gsp-app-manager.c
+++ b/capplet/gsp-app-manager.c
@@ -28,8 +28,6 @@
#include "gsp-app-manager.h"
-static GspAppManager *manager = NULL;
-
typedef struct {
char *dir;
int index;
@@ -599,6 +597,8 @@ gsp_app_manager_find_app_with_basename (GspAppManager *manager,
GspAppManager *
gsp_app_manager_get (void)
{
+ static GspAppManager *manager = NULL;
+
if (manager == NULL) {
manager = g_object_new (GSP_TYPE_APP_MANAGER, NULL);
return manager;