branches/stable/extragear/graphics/digikam/libs/dcraw

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

branches/stable/extragear/graphics/digikam/libs/dcraw

Gilles Caulier
SVN commit 497166 by cgilles:

digikam from stable : fix unclosed file if dcraw parse method failed

CCMAIL: [hidden email]


 M  +2 -0      dcraw_parse.cpp  


--- branches/stable/extragear/graphics/digikam/libs/dcraw/dcraw_parse.cpp #497165:497166
@@ -1189,6 +1189,7 @@
 
     if (model[0] == 0)
     {
+        fclose(ifp);
         return 1;
     }
 
@@ -1256,6 +1257,7 @@
   parse_jpeg(0);
   if (model[0] == 0) {
     kdDebug() << "unsupported file format." << endl;
+    fclose(ifp);
     return 1;
   }
   kdDebug() << "Findings for " << infile << ":" << endl;
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel