WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
60165
[GTK] Unref the SoupSession used by WebKitGtk+ at exit
https://bugs.webkit.org/show_bug.cgi?id=60165
Summary
[GTK] Unref the SoupSession used by WebKitGtk+ at exit
Sergio Villar Senin
Reported
2011-05-04 06:28:18 PDT
[GTK] Unref the SoupSession used by WebKitGtk+ at exit
Attachments
Patch
(1.51 KB, patch)
2011-05-04 06:31 PDT
,
Sergio Villar Senin
mrobinson
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Sergio Villar Senin
Comment 1
2011-05-04 06:31:23 PDT
Created
attachment 92229
[details]
Patch
Martin Robinson
Comment 2
2011-05-04 08:29:42 PDT
Comment on
attachment 92229
[details]
Patch Have you looked at using DEFINE_STATIC_LOCAL and a GRefPtr to do this?
Sergio Villar Senin
Comment 3
2011-05-05 10:57:11 PDT
(In reply to
comment #2
)
> (From update of
attachment 92229
[details]
) > Have you looked at using DEFINE_STATIC_LOCAL and a GRefPtr to do this?
I understood that DEFINE_STATIC_LOCAL was used to avoid destructor calling on exit which is totally the contrary to what I'm trying to achieve. Maybe I'm not understanding what you mean...
Martin Robinson
Comment 4
2011-05-05 12:35:24 PDT
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 92229
[details]
[details]) > > Have you looked at using DEFINE_STATIC_LOCAL and a GRefPtr to do this? > > I understood that DEFINE_STATIC_LOCAL was used to avoid destructor calling on exit which is totally the contrary to what I'm trying to achieve. Maybe I'm not understanding what you mean...
It's used to avoid false leaks reporting on exit.
Xan Lopez
Comment 5
2011-06-02 09:00:58 PDT
(In reply to
comment #4
)
> It's used to avoid false leaks reporting on exit.
From the macro documentation: // Use these to declare and define a static local variable (static T;) so that // it is leaked so that its destructors are not called at exit. Using this // macro also allows workarounds a compiler bug present in Apple's version of GCC 4.0.1. So it seems to me it does the opposite of what we want?
Martin Robinson
Comment 6
2011-06-02 09:09:41 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > It's used to avoid false leaks reporting on exit. > > From the macro documentation: > > // Use these to declare and define a static local variable (static T;) so that > // it is leaked so that its destructors are not called at exit. Using this > // macro also allows workarounds a compiler bug present in Apple's version of GCC 4.0.1. > > So it seems to me it does the opposite of what we want?
Oh right. It seems so!
Sergio Villar Senin
Comment 7
2011-06-03 03:05:37 PDT
Committed
r87999
: <
http://trac.webkit.org/changeset/87999
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug