Skip to content

Commit

Permalink
Fixed merge conflict garbage.
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Jan 10, 2024
1 parent 9de537b commit 73485d7
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions nui/src/nui/backend/window_impl_linux.ipp
Original file line number Diff line number Diff line change
@@ -1,26 +1,12 @@
#include "gobject.hpp"

<<<<<<< HEAD
#include <iostream>

=======
>>>>>>> dfe851c (Fixed segfault on linux with large custom scheme data.)
namespace Nui::Impl::Linux
{
struct AsyncResponse
{
GObjectReference<GInputStream> stream;
GObjectReference<WebKitURISchemeResponse> response;
std::string data;
<<<<<<< HEAD
~AsyncResponse()
{
std::cout << "AsyncResponse dtor" << std::endl;
if (stream)
g_input_stream_close(stream.get(), nullptr, nullptr);
}
=======
>>>>>>> dfe851c (Fixed segfault on linux with large custom scheme data.)
};

struct SchemeContext
Expand Down Expand Up @@ -200,17 +186,7 @@ extern "C" {

void uriSchemeDestroyNotify(void* userData)
{
<<<<<<< HEAD
auto* schemeContext = static_cast<Nui::Impl::Linux::SchemeContext*>(userData);
auto impl = schemeContext->impl.lock();
if (!impl)
return;

std::lock_guard<std::mutex> asyncResponsesGuard{schemeContext->asyncResponsesGuard};
schemeContext->asyncResponses.clear();
=======
// Useless, because called when everything is already destroyed
>>>>>>> dfe851c (Fixed segfault on linux with large custom scheme data.)
}
}

Expand Down

0 comments on commit 73485d7

Please sign in to comment.