-
carlosgc@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=127246 Reviewed by Martin Robinson. Source/WebCore: Do not adopt GVariant floating references, they will be converted to a full reference by GRefPtr. * platform/gtk/PasteboardHelper.cpp: (WebCore::PasteboardHelper::fillSelectionData): (WebCore::PasteboardHelper::fillDataObjectFromDropData): Source/WTF: GRefPtr should always use g_variant_ref_sink to deal with GVariant floating references. In case of full references, g_variant_ref_sink calls g_variant_ref, so it's safe to use it always. * wtf/gobject/GRefPtr.cpp: (WTF::refGPtr): Use g_variant_ref_sink(). git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ef8bd2da