summaryrefslogtreecommitdiffstats
path: root/graphics/pornview/files/patch-debian
blob: ee888b98943d3e9e231e4cb6edd0e7dd0d0bf649 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- pornview-0.2pre1.orig/src/support/image_loader.c
+++ src/support/image_loader.c
@@ -81,7 +81,7 @@
 image_loader_stop (ImageLoader * il)
 {
 #ifdef USE_GTK2
-    GError *err;
+    GError *err = NULL;
 #endif
 
     if (!il)
@@ -174,7 +174,7 @@
     gint    c;
 
 #ifdef USE_GTK2
-    GError *err;
+    GError *err = NULL;
 #endif
 
     if (!il)
@@ -241,7 +241,7 @@
     int     b;
 
 #ifdef USE_GTK2
-    GError *err;
+    GError *err = NULL;
 #endif
 
     if (!il->loader || il->pixbuf)
--- pornview-0.2pre1.orig/src/support/widgets/gtkxine.c
+++ src/support/widgets/gtkxine.c
@@ -632,7 +632,7 @@
      */
     if (this->vo_driver != NULL)
    xine_close_video_driver (this->xine, this->vo_driver);
-    if (this->vo_driver != NULL)
+    if (this->ao_driver != NULL)
    xine_close_audio_driver (this->xine, this->ao_driver);
 
     /*
--- pornview-0.2pre1.orig/src/support/widgets/zlist.c
+++ src/support/widgets/zlist.c
@@ -634,7 +634,8 @@
                       CELL_X_FROM_COL (list, j), area->y,
                       list->cell_x_pad, area->height);
 
-       cell = ZLIST_CELL_FROM_INDEX (list, idx);
+       if (idx < list->cell_count)
+           cell = ZLIST_CELL_FROM_INDEX (list, idx);
 
        cell_area.x = CELL_X_FROM_COL (list, j) + list->cell_x_pad;
        cell_area.y = CELL_Y_FROM_ROW (list, i) + list->cell_y_pad;