1 |
pacho 13/05/26 11:20:45 |
2 |
|
3 |
Added: grilo-0.2.6-testui-crash.patch |
4 |
Log: |
5 |
Version bump, remove old |
6 |
|
7 |
(Portage version: 2.1.12.1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-libs/grilo/files/grilo-0.2.6-testui-crash.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/grilo/files/grilo-0.2.6-testui-crash.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/grilo/files/grilo-0.2.6-testui-crash.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: grilo-0.2.6-testui-crash.patch |
16 |
=================================================================== |
17 |
From f581f2a456e6dbec76742b8e862feecee58e36b0 Mon Sep 17 00:00:00 2001 |
18 |
From: Juan A. Suarez Romero <jasuarez@××××××.com> |
19 |
Date: Tue, 21 May 2013 14:01:10 +0000 |
20 |
Subject: test-ui: Check if there is a reply from OAuth |
21 |
|
22 |
https://bugzilla.gnome.org/show_bug.cgi?id=700478 |
23 |
--- |
24 |
diff --git a/tools/grilo-test-ui/flickr-oauth.c b/tools/grilo-test-ui/flickr-oauth.c |
25 |
index 90679d2..8e847c5 100644 |
26 |
--- a/tools/grilo-test-ui/flickr-oauth.c |
27 |
+++ b/tools/grilo-test-ui/flickr-oauth.c |
28 |
@@ -74,6 +74,7 @@ flickroauth_get_request_token (const gchar *consumer_key, |
29 |
gchar *params[7]; |
30 |
gchar *params_string; /* one string later created from params[] */ |
31 |
gchar *http_reply; |
32 |
+ gchar *request_token = NULL; |
33 |
|
34 |
timestamp = get_timestamp (); |
35 |
nonce = oauth_gen_nonce (); |
36 |
@@ -107,7 +108,12 @@ flickroauth_get_request_token (const gchar *consumer_key, |
37 |
http_reply = oauth_http_get2 (url, NULL, NULL); |
38 |
g_free (url); |
39 |
|
40 |
- return parse_request_token (http_reply, secret); |
41 |
+ if (http_reply) { |
42 |
+ request_token = parse_request_token (http_reply, secret); |
43 |
+ g_free (http_reply); |
44 |
+ } |
45 |
+ |
46 |
+ return request_token; |
47 |
} |
48 |
|
49 |
gchar * |
50 |
@@ -125,6 +131,7 @@ flickroauth_get_access_token (const gchar *consumer_key, |
51 |
gchar *params[8]; |
52 |
gchar *params_string; /* one string later created from params[] */ |
53 |
gchar *http_reply; |
54 |
+ gchar *access_token = NULL; |
55 |
|
56 |
timestamp = get_timestamp (); |
57 |
nonce = oauth_gen_nonce (); |
58 |
@@ -159,7 +166,12 @@ flickroauth_get_access_token (const gchar *consumer_key, |
59 |
http_reply = oauth_http_get2 (url, NULL, NULL); |
60 |
g_free (url); |
61 |
|
62 |
- return parse_access_token (http_reply, secret); |
63 |
+ if (http_reply) { |
64 |
+ access_token = parse_access_token (http_reply, secret); |
65 |
+ g_free (http_reply); |
66 |
+ } |
67 |
+ |
68 |
+ return access_token; |
69 |
} |
70 |
|
71 |
gchar * |
72 |
-- |
73 |
cgit v0.9.1 |