Changeset 149038 in webkit


Ignore:
Timestamp:
Apr 24, 2013 8:34:35 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK][AC] Fix unexpected clear of ClutterContent.
https://bugs.webkit.org/show_bug.cgi?id=115099

Patch by ChangSeok Oh <ChangSeok Oh> on 2013-04-24
Reviewed by Gustavo Noronha Silva.

adoptGRef doesn't increase a reference count. So if a actor has a valid ClutterContent,
it would be cleared unexpectedly by smart pointer when escaping a function.

No new tests, no functionality changed.

  • platform/graphics/clutter/GraphicsLayerActor.cpp:

(graphicsLayerActorUpdateTexture):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r149034 r149038  
     12013-04-24  ChangSeok Oh  <changseok.oh@collabora.com>
     2
     3        [GTK][AC] Fix unexpected clear of ClutterContent.
     4        https://bugs.webkit.org/show_bug.cgi?id=115099
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        adoptGRef doesn't increase a reference count. So if a actor has a valid ClutterContent,
     9        it would be cleared unexpectedly by smart pointer when escaping a function.
     10
     11        No new tests, no functionality changed.
     12
     13        * platform/graphics/clutter/GraphicsLayerActor.cpp:
     14        (graphicsLayerActorUpdateTexture):
     15
    1162013-04-24  Alberto Garcia  <agarcia@igalia.com>
    217
  • trunk/Source/WebCore/platform/graphics/clutter/GraphicsLayerActor.cpp

    r148743 r149038  
    250250
    251251    ClutterActor* actor = CLUTTER_ACTOR(layer);
    252     GRefPtr<ClutterContent> canvas = adoptGRef(clutter_actor_get_content(actor));
     252    GRefPtr<ClutterContent> canvas = clutter_actor_get_content(actor);
    253253    if (canvas) {
    254254        // Nothing needs a texture, remove the one we have, if any.
Note: See TracChangeset for help on using the changeset viewer.