[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 189/331] gs-ubuntuone: Don't deference some strings which are already pointers



commit 33c754dfad7ba52d93f76315dc20491b07a32395
Author: Iain Lane <iain orangesquash org uk>
Date:   Wed Apr 6 16:44:39 2016 +0100

    gs-ubuntuone: Don't deference some strings which are already pointers
    
    This is for the no credentials case.
    
    Crash fix.

 src/plugins/gs-ubuntuone.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/gs-ubuntuone.c b/src/plugins/gs-ubuntuone.c
index 338047a..9fe63a1 100644
--- a/src/plugins/gs-ubuntuone.c
+++ b/src/plugins/gs-ubuntuone.c
@@ -246,10 +246,10 @@ gs_ubuntuone_get_credentials (gchar **consumer_key, gchar **consumer_secret, gch
                return TRUE;
        }
 
-       g_free (&secret_context.token_secret);
-       g_free (&secret_context.token_key);
-       g_free (&secret_context.consumer_secret);
-       g_free (&secret_context.consumer_key);
+       g_free (secret_context.token_secret);
+       g_free (secret_context.token_key);
+       g_free (secret_context.consumer_secret);
+       g_free (secret_context.consumer_key);
        return FALSE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]