summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index c13aca1a95..a572586886 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -1520,9 +1520,11 @@ int read_pfraw(char* filename, int prio)
1520 sizeof( pix_t ) * bmph.width * bmph.height; 1520 sizeof( pix_t ) * bmph.width * bmph.height;
1521 1521
1522 int hid; 1522 int hid;
1523 while (!(hid = rb->buflib_alloc(&buf_ctx, size)) && free_slide_prio(prio)); 1523 do {
1524 hid = rb->buflib_alloc(&buf_ctx, size);
1525 } while (hid < 0 && free_slide_prio(prio));
1524 1526
1525 if (!hid) { 1527 if (hid < 0) {
1526 rb->close( fh ); 1528 rb->close( fh );
1527 return 0; 1529 return 0;
1528 } 1530 }