[Digikam-devel] [Bug 174586] Loading video from camera consumes ll memory
Marcus Meissner
marcus at jet.franken.de
Sun Jul 12 20:51:42 BST 2009
https://bugs.kde.org/show_bug.cgi?id=174586
--- Comment #26 from Marcus Meissner <marcus jet franken de> 2009-07-12 21:51:38 ---
from patch:
+ errorCode = gp_file_new_from_fd(&cfile, file.handle());
+
+ if (errorCode != GP_OK)
+ {
+ kDebug(50003) << "Failed to get camera item!" << file.handle();
+ printGphotoErrorDescription(errorCode);
+ gp_file_unref(cfile);
remove the gp_file_unref(cfile) here, cfile is not initialized when errorCode
!= GP_OK.
Also QFile:handle() ... does it return the fd QFile still continues to own?
Then try using
+ errorCode = gp_file_new_from_fd(&cfile, dup(file.handle()));
instead since this call hands lifetime control of "fd" over to libgphoto2 (and
we would close fd twic otherwise).
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list