Bug 157169 - Use of temporary after destruction
Summary: Use of temporary after destruction
Status: RESOLVED INTENTIONAL
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-04 22:24 UTC by Andreas Schwab
Modified: 2016-06-06 01:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch (715 bytes, patch)
2008-02-04 22:25 UTC, Andreas Schwab
Details

Note You need to log in before you can comment on or make changes to this bug.
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.