Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Don't delete javascriptString, QT holds onto it
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Morrison committed Feb 26, 2011
1 parent c9d1bff commit 156d5ea
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/WebPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ WebPage::WebPage(QObject *parent) : QWebPage(parent) {
strcpy(javascriptString, (const char *)javascript.data());
javascriptString[javascript.size()] = 0;
m_capybaraJavascript = javascriptString;
delete javascriptString;
}

void WebPage::injectJavascriptHelpers() {
Expand Down

0 comments on commit 156d5ea

Please sign in to comment.