Bugzilla – Attachment 810466 Details for
Bug 1141444
clementine: a memory hog
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
delete the allocated mem
delete.patch (text/plain), 1.67 KB, created by
Jiri Slaby
on 2019-07-15 12:26:46 UTC
(
hide
)
Description:
delete the allocated mem
Filename:
MIME Type:
Creator:
Jiri Slaby
Created:
2019-07-15 12:26:46 UTC
Size:
1.67 KB
patch
obsolete
>--- > ext/libclementine-tagreader/tagreader.cpp | 6 ++++++ > ext/libclementine-tagreader/tagreader.h | 1 + > src/songinfo/ultimatelyricsprovider.cpp | 5 +++++ > src/songinfo/ultimatelyricsprovider.h | 1 + > 4 files changed, 13 insertions(+) > >--- a/ext/libclementine-tagreader/tagreader.cpp >+++ b/ext/libclementine-tagreader/tagreader.cpp >@@ -125,6 +125,12 @@ TagReader::TagReader() > network_(new QNetworkAccessManager), > kEmbeddedCover("(embedded)") {} > >+TagReader::~TagReader() >+{ >+ delete factory_; >+ delete network_; >+} >+ > void TagReader::ReadFile(const QString& filename, > pb::tagreader::SongMetadata* song) const { > const QByteArray url(QUrl::fromLocalFile(filename).toEncoded()); >--- a/ext/libclementine-tagreader/tagreader.h >+++ b/ext/libclementine-tagreader/tagreader.h >@@ -50,6 +50,7 @@ class FileRefFactory; > class TagReader { > public: > TagReader(); >+ ~TagReader(); > > void ReadFile(const QString& filename, > pb::tagreader::SongMetadata* song) const; >--- a/src/songinfo/ultimatelyricsprovider.cpp >+++ b/src/songinfo/ultimatelyricsprovider.cpp >@@ -34,6 +34,11 @@ UltimateLyricsProvider::UltimateLyricsPr > redirect_count_(0), > url_hop_(false) {} > >+UltimateLyricsProvider::~UltimateLyricsProvider() >+{ >+ delete network_; >+} >+ > void UltimateLyricsProvider::FetchInfo(int id, const Song& metadata) { > // Get the text codec > const QTextCodec* codec = >--- a/src/songinfo/ultimatelyricsprovider.h >+++ b/src/songinfo/ultimatelyricsprovider.h >@@ -33,6 +33,7 @@ class UltimateLyricsProvider : public So > > public: > UltimateLyricsProvider(); >+ ~UltimateLyricsProvider(); > > static const int kRedirectLimit; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 1141444
:
810426
|
810435
|
810464
|
810465
|
810466
|
810549
|
811247
|
811251