daemon : memory correption fixes
authorAmarnath Valluri <amarnath.valluri@linux.intel.com>
Fri, 8 Mar 2013 11:26:27 +0000 (13:26 +0200)
committerJussi Laako <jussi.laako@linux.intel.com>
Tue, 19 Mar 2013 14:17:58 +0000 (16:17 +0200)
src/daemon/dbus/gsignond-dbus-auth-service-adapter.c
src/daemon/dbus/gsignond-dbus-auth-session-adapter.c
src/daemon/dbus/gsignond-dbus-identity-adapter.c
src/daemon/gsignond-auth-session-iface.c
src/daemon/gsignond-identity-iface.c

index 5dfb957..816fc56 100644 (file)
@@ -72,7 +72,7 @@ gsignond_dbus_auth_service_adapter_set_property (GObject *object,
 
     switch (property_id) {
         case PROP_IMPL: {
-            gpointer iface = g_value_peek_pointer (value);
+            gpointer iface = g_value_get_pointer (value);
             if (iface) {
                 self->priv->parent = GSIGNOND_AUTH_SERVICE_IFACE (iface);
             }
@@ -93,7 +93,7 @@ gsignond_dbus_auth_service_adapter_get_property (GObject *object,
 
     switch (property_id) {
         case PROP_IMPL: {
-            g_value_set_instance (value, self->priv->parent);
+            g_value_set_pointer (value, self->priv->parent);
             break;
         }
         default:
@@ -140,10 +140,9 @@ gsignond_dbus_auth_service_adapter_class_init (GSignondDbusAuthServiceAdapterCla
     object_class->dispose = gsignond_dbus_auth_service_adapter_dispose;
     object_class->finalize = gsignond_dbus_auth_service_adapter_finalize;
 
-    properties[PROP_IMPL] = g_param_spec_object ("auth-session-impl",
+    properties[PROP_IMPL] = g_param_spec_pointer ("auth-session-impl",
                                                   "Auth session impl",
                                                   "AuthSessionIface implementation object",
-                                                  GSIGNOND_TYPE_AUTH_SERVICE_IFACE,
                                                   G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
 
     g_object_class_install_properties (object_class, N_PROPERTIES, properties);
index 8595372..14ab0c6 100644 (file)
@@ -82,7 +82,7 @@ gsignond_dbus_auth_session_adapter_set_property (GObject *object,
 
     switch (property_id) {
         case PROP_IMPL: {
-            gpointer iface = g_value_peek_pointer (value);
+            gpointer iface = g_value_get_pointer (value);
             if (iface) {
                 if (self->priv->parent) {
                     g_signal_handler_disconnect (self->priv->parent, self->priv->state_changed_handler_id);
index 521de18..806607b 100644 (file)
@@ -94,7 +94,7 @@ gsignond_dbus_identity_adapter_set_property (GObject *object,
 
     switch (property_id) {
         case PROP_IMPL: {
-            gpointer iface = g_value_peek_pointer (value);
+            gpointer iface = g_value_get_pointer (value);
             if (iface) {
                 if (self->priv->identity) {
                     if (self->priv->info_updated_handler_id) {
@@ -136,7 +136,7 @@ gsignond_dbus_identity_adapter_get_property (GObject *object,
 
     switch (property_id) {
         case PROP_IMPL: {
-            g_value_set_instance (value, self->priv->identity);
+            g_value_set_pointer (value, self->priv->identity);
             break;
         }
         case PROP_APP_CONTEXT:
@@ -209,10 +209,9 @@ gsignond_dbus_identity_adapter_class_init (GSignondDbusIdentityAdapterClass *kla
     object_class->dispose = gsignond_dbus_identity_adapter_dispose;
     object_class->finalize = gsignond_dbus_identity_adapter_finalize;
 
-    properties[PROP_IMPL] = g_param_spec_object ("identity-impl",
+    properties[PROP_IMPL] = g_param_spec_pointer ("identity-impl",
                                                   "Identity Iface implementation",
                                                   "IdentityIface implementation object",
-                                                  GSIGNOND_TYPE_IDENTITY_IFACE,
                                                   G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
     properties[PROP_APP_CONTEXT] = g_param_spec_string (
                 "app-context",
index 11b9538..6a942aa 100644 (file)
@@ -38,7 +38,7 @@ enum {
     SIG_MAX
 };
 
-guint signals[SIG_MAX] = { 0 };
+static guint signals[SIG_MAX] = { 0 };
 
 static void
 gsignond_auth_session_iface_default_init (
index a198e62..6e92f18 100644 (file)
@@ -35,7 +35,7 @@ enum
     SIG_MAX
 };
 
-guint signals[SIG_MAX];
+static guint signals[SIG_MAX];
 
 G_DEFINE_INTERFACE (GSignondIdentityIface, gsignond_identity_iface, G_TYPE_OBJECT)