From 46fec71926889b983b9f5f18f10e7259d25bfb24 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 30 Jan 2004 21:24:37 +0000 Subject: Don't try to g_free a nsCOMPtr<>, and use nsMemory::Free for the mMimeType 2004-01-30 Christian Persch * embed/mozilla/ContentHandler.cpp: Don't try to g_free a nsCOMPtr<>, and use nsMemory::Free for the mMimeType string. --- ChangeLog | 7 +++++++ embed/mozilla/ContentHandler.cpp | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2cacfc695..d6252a73f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-01-30 Christian Persch + + * embed/mozilla/ContentHandler.cpp: + + Don't try to g_free a nsCOMPtr<>, and use nsMemory::Free for the + mMimeType string. + 2004-01-29 Christian Persch * embed/mozilla/EphyHeaderSniffer.cpp: diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp index b6f9fca73..510a3c8d9 100644 --- a/embed/mozilla/ContentHandler.cpp +++ b/embed/mozilla/ContentHandler.cpp @@ -67,8 +67,7 @@ GContentHandler::~GContentHandler() { LOG ("GContentHandler dtor") - g_free (mUri); - g_free (mMimeType); + nsMemory::Free (mMimeType); } //////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3