]> Pileus Git - ~andy/gtk/blobdiff - gdk/quartz/gdkdisplay-quartz.c
Change FSF Address
[~andy/gtk] / gdk / quartz / gdkdisplay-quartz.c
index b247b961e5ff060ec18b2fc91111768a372353ed..202a07f909cebefa051a21265c9364669b06a1f9 100644 (file)
@@ -13,9 +13,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include "config.h"
@@ -308,8 +306,7 @@ gdk_quartz_display_finalize (GObject *object)
 {
   GdkQuartzDisplay *display_quartz = GDK_QUARTZ_DISPLAY (object);
 
-  g_list_foreach (display_quartz->input_devices, (GFunc) g_object_unref, NULL);
-  g_list_free (display_quartz->input_devices);
+  g_list_free_full (display_quartz->input_devices, g_object_unref);
 
   G_OBJECT_CLASS (gdk_quartz_display_parent_class)->finalize (object);
 }
@@ -321,6 +318,7 @@ gdk_quartz_display_class_init (GdkQuartzDisplayClass *class)
   GdkDisplayClass *display_class = GDK_DISPLAY_CLASS (class);
 
   object_class->finalize = gdk_quartz_display_finalize;
+  object_class->dispose = gdk_quartz_display_dispose;
 
   display_class->window_type = GDK_TYPE_QUARTZ_WINDOW;