Reset buffer pointer on connection close (rhbz 620843)
This commit is contained in:
parent
7105dd9432
commit
fc1282273d
15
gtk-vnc-0.4.1-close-buffer.patch
Normal file
15
gtk-vnc-0.4.1-close-buffer.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff -rup gtk-vnc-0.4.1.orig/src/vncconnection.c gtk-vnc-0.4.1.new/src/vncconnection.c
|
||||||
|
--- gtk-vnc-0.4.1.orig/src/vncconnection.c 2010-07-14 11:28:15.000000000 +0100
|
||||||
|
+++ gtk-vnc-0.4.1.new/src/vncconnection.c 2010-08-05 14:56:40.403911911 +0100
|
||||||
|
@@ -4191,7 +4191,10 @@ static void vnc_connection_close(VncConn
|
||||||
|
priv->name = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
- g_free (priv->xmit_buffer);
|
||||||
|
+ if (priv->xmit_buffer) {
|
||||||
|
+ g_free(priv->xmit_buffer);
|
||||||
|
+ priv->xmit_buffer = NULL;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
if (priv->cred_username) {
|
||||||
|
g_free(priv->cred_username);
|
@ -13,10 +13,11 @@
|
|||||||
Summary: A GTK widget for VNC clients
|
Summary: A GTK widget for VNC clients
|
||||||
Name: gtk-vnc
|
Name: gtk-vnc
|
||||||
Version: 0.4.1
|
Version: 0.4.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.4/%{name}-%{version}.tar.bz2
|
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.4/%{name}-%{version}.tar.bz2
|
||||||
|
Patch1: %{name}-%{version}-close-buffer.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
URL: http://live.gnome.org/gtk-vnc
|
URL: http://live.gnome.org/gtk-vnc
|
||||||
BuildRequires: gtk2-devel >= 2.14
|
BuildRequires: gtk2-devel >= 2.14
|
||||||
@ -113,6 +114,7 @@ screenshots of a VNC desktop
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with_gir}
|
%if %{with_gir}
|
||||||
@ -207,6 +209,9 @@ rm -fr %{buildroot}
|
|||||||
%{_mandir}/man1/gvnccapture.1*
|
%{_mandir}/man1/gvnccapture.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 5 2010 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-4
|
||||||
|
- Reset buffer pointer on connection close (rhbz 620843)
|
||||||
|
|
||||||
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.1-3
|
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.4.1-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user