Bug 157169

Summary: Use of temporary after destruction
Product: [Applications] kaffeine Reporter: Andreas Schwab <schwab>
Component: generalAssignee: Mauro Carvalho Chehab <mchehab>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: cpigat242
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Patch

Description Andreas Schwab 2008-02-04 22:24:31 UTC
Version:           0.8.6 (using KDE 3.5.7)
Installed from:    SuSE RPMs
OS:                Linux

In KXineWidget::setStreamSaveDir a pointer into the temporary object returned by QFile::encodeName is used after the temporary goes out of scope (which is at the end of the statement).  The temporary object needs to be copied to a non-temporary object.  The symptom of the bug is a bogus misc.save_dir in the xine config.
Comment 1 Andreas Schwab 2008-02-04 22:25:24 UTC
Created attachment 23418 [details]
Patch
Comment 2 Mauro Carvalho Chehab 2016-06-06 01:53:13 UTC
This bug is for a very old version of Kaffeine, not maintained anymore. If you still see it on Kaffeine 2.0.1, please file a new bug.