LayoutTests:
[WebKit-https.git] / WebKit / Plugins / WebPluginDocumentView.m
index c3d43e3fee86ebdcb6bdaa7826b66b8d3e2b4978..1ccacefe29d5fcaf7bc8b114e3cb6d3d191a5e13 100644 (file)
@@ -60,6 +60,7 @@
     [plugin release];
     [pluginController destroyAllPlugins];
     [pluginController release];
+    [_dataSource release];
     [super dealloc];
 }
 
@@ -84,7 +85,7 @@
     if (![self superview])
         return;
         
-    _dataSource = dataSource;
+    _dataSource = [dataSource retain];
     [pluginController setDataSource:dataSource];
     dataSourceHasBeenSet = YES;