[GTK] Fix runtime critical warnings when writing to the clipboard after r173687
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Sep 2014 16:12:50 +0000 (16:12 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 17 Sep 2014 16:12:50 +0000 (16:12 +0000)
commit6734ec389a185d9d65e9a0234e15618a43f9dbb7
tree2dcb7f9bb05b7f4b23166b50fd706dd13f7b5dba
parent8b78739c1b2329d635ee229203ba31547cf8675c
[GTK] Fix runtime critical warnings when writing to the clipboard after r173687
https://bugs.webkit.org/show_bug.cgi?id=136891

Reviewed by Philippe Normand.

* platform/gtk/PasteboardHelper.cpp:
(WebCore::PasteboardHelper::writeClipboardContents): Check passed
callback is not null before trying to ref/unref it since
g_closure_ref/unref are not null safe.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@173692 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/gtk/PasteboardHelper.cpp