Merge commit 'upstream/0.2.10'
[debian/pino.git] / debian / patches / 002_fix-parser-cleanup.diff
1 Description: Removes Parser.cleanup() calls to fix issues with PA.
2   See: http://0pointer.de/blog/projects/beware-of-xmlCleanupParser
3 Author: Julien Valroff <julien@kirya.net>
4 Bug: http://code.google.com/p/pino-twitter/issues/detail?id=250
5 Forwarded: yes
6
7 --- pino.orig/src/rest_api_abstract.vala        2010-05-23 13:34:21.000000000 +0200
8 +++ pino/src/rest_api_abstract.vala     2010-05-23 13:34:25.000000000 +0200
9 @@ -262,7 +262,6 @@
10  
11                 Parser.init();
12                 bool result = parse_friendship(data, just_friend_check);
13 -               Parser.cleanup();
14  
15                 return result;
16         }
17 --- pino.orig/src/rest_api_acc.vala     2010-05-23 13:35:09.000000000 +0200
18 +++ pino/src/rest_api_acc.vala  2010-05-23 13:35:11.000000000 +0200
19 @@ -45,7 +45,6 @@
20  
21                 Parser.init();
22                 var result = parse_userpic_url(data);
23 -               Parser.cleanup();
24  
25                 return result;
26         }
27 --- pino.orig/src/rest_api_direct.vala  2010-05-23 13:34:46.000000000 +0200
28 +++ pino/src/rest_api_direct.vala       2010-05-23 13:34:49.000000000 +0200
29 @@ -59,7 +59,6 @@
30  
31                 Parser.init();
32                 var result = parse_direct(data);
33 -               Parser.cleanup();
34  
35                 return result;
36         }
37 --- pino.orig/src/rest_api_re.vala      2010-05-23 13:34:58.000000000 +0200
38 +++ pino/src/rest_api_re.vala   2010-05-23 13:35:00.000000000 +0200
39 @@ -76,7 +76,6 @@
40  
41                 Parser.init();
42                 var result = parse_status(data);
43 -               Parser.cleanup();
44  
45                 return result;
46         }
47 --- pino.orig/src/rest_api_timeline.vala        2010-05-23 13:34:33.000000000 +0200
48 +++ pino/src/rest_api_timeline.vala     2010-05-23 13:34:37.000000000 +0200
49 @@ -92,7 +92,6 @@
50  
51                 Parser.init();
52                 ArrayList<Status> result = parse_timeline(data, fstatus);
53 -               Parser.cleanup();
54                 return result;
55         }
56         
57 @@ -286,7 +285,6 @@
58                 
59                 Parser.init();
60                 Status status = parse_status(data);
61 -               Parser.cleanup();
62                 
63                 return status;
64         }